Skip to content

Commit

Permalink
Add travis for doc upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Aug 18, 2016
1 parent aaee55c commit 75a6005
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
language: rust
sudo: false

# run builds for all the trains (and more)
rust:
- stable
- beta
- nightly

# load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# the main build
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo test -- --release &&
travis-cargo bench -- --no-run &&
travis-cargo doc
after_success:
# upload the documentation (GH_TOKEN from env)
- travis-cargo --only nightly doc-upload

branches:
only:
- master

env:
global:
# override the default `--features unstable` used for the nightly branch (optional)
- TRAVIS_CARGO_NIGHTLY_FEATURE=""

0 comments on commit 75a6005

Please sign in to comment.