blob: dad0495b42c1b424dd64510cf9676180a247fd40 [file] [log] [blame]
language: rust
rust:
- stable
- beta
- nightly
sudo: false
script: |
cargo build --verbose && \
cargo test --verbose && \
cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
echo '<meta http-equiv=refresh content=0;url=adler32/index.html>' > target/doc/index.html &&
pip install --user ghp-import &&
$HOME/.local/bin/ghp-import -n target/doc &&
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages