language: rust
script:
- cargo build --verbose
- cargo test --verbose
- rustdoc --test README.md -L target
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
echo '<meta http-equiv=refresh content=0;url=bzip2/index.html>' > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages &&
rm target/doc/index.html &&
mv target/doc . &&
(curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh)
env:
global:
- secure: ZfeDRD9alYh3a2tvmbaLgZ7ORNEG/nHpANVL1ajrrE0xhbD2hUKYsXLT2mlYvJLM5YGeVmjCmxb79jG/nCwpJqNvkITPvLoxySkwezseLeNIQyQG/hILHlC0U+MTvlLbpTAL1gxqeW7m9lo32Vg6kdeFkg6aofAOz4c4vUULURc=
- secure: ehttFYoqOyY0JhogiQjiH4R9frtY5Al8p62wZCwBYZM00AkgJIiAG5byZsvA+NPJOgGoIzQqDNlh5qtGBwgg9W9t6Yo+ztqR6+5Hemf0JfYGDjDpPgBVMyolQpXzatap8wzqnt5JUEqld7M7FXParTb6n4f1VQB92li0GPkNjhQ=
notifications:
email:
on_success: never