language: rust
script:
- cargo build --verbose
- cargo test --verbose
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
echo '<meta http-equiv=refresh content=0;url=getopts/index.html>' > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
global:
secure: H6SBXFQ/i/xRTCkEgKwk9WTSKXXaaEMqrASLbzKqhqJHR3ed/vp5YBWzlCJkAI3+2j3iVmbCfHqtpzmF9f1GAn+apg3mDI5GfFRJAfncHhZoN332wcBLvvNuRvJS9wRk3j3kOLKjBJmPa7+TCFafyXfCAutzfUlQPK8dgxG8WEI=
notifications:
email:
on_success: never