language: rust
rust:
- 1.0.0
- beta
- nightly
script:
- cargo build --verbose
- cargo test --verbose
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ] ; then
cargo bench --verbose;
fi
after_success: |
[ "$TRAVIS_BRANCH" = "master" ] && \
[ "$TRAVIS_PULL_REQUEST" = "false" ] && \
cargo doc && \
echo "<meta http-equiv=refresh content=0;url=lines/index.html>" > target/doc/index.html && \
sudo pip install ghp-import && \
ghp-import -n target/doc && \
git push -fq "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git" gh-pages