Skip to content

Commit

Permalink
Merge pull request #37 from louy2/louy2-travis
Browse files Browse the repository at this point in the history
Add Travis CI config to release built HTML book on tag
  • Loading branch information
edunham committed Aug 8, 2016
2 parents b24989e + 190a566 commit 29ef30a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: rust
rust:
- nightly

addons:
apt:
packages:
- tree

install:
- git clone --depth 1 https://github.com/steveklabnik/rustbook.git
- cd rustbook && cargo build --release && cd ..

script:
- rustbook/target/release/rustbook build text/ book/

after_success:
- tree .
- zip too-many-lists.zip rust.css
- zip -r too-many-lists.zip book

deploy:
provider: releases
api_key: "$GH_DEPLOY_TOKEN"
file: "too-many-lists.zip"
skip_cleanup: true
on:
tags: true

0 comments on commit 29ef30a

Please sign in to comment.