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=splay/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 &&
rm target/doc/index.html &&
mv target/doc . &&
(curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh)
env:
global:
- secure: poQ3qeZzKOTQyEBIC8X4SVAToN/zV0QAxeYqUpjRbT1HNlKsTVuHiQmbeAuYdiKEh6fkx6VsKG6DekrrYsK4/HzpRWFHxp8sLZtmTv+rBTlOQOMno+wS5YpNsm3v3n1nD9tGBMDDLCGOsFsMRGKtdJzyXqlIlnMJbKs+Ud6DBBw=
- secure: SaRBNK8Wryx9zOET88L79HK/gZX7MC3h4KFeWbe2hXJP2TnXe58WYSp1Cy/PU+buQjVzxzMucZnRdkyrq2UOM3ruSljpKA11ySNYsRT4ppdnTiqyU9cnv3H2c0SfFoezGE8gGjRXGBce+4KF1waJ3ybkPekyxZrCC6gR4SZSots=
notifications:
email:
on_success: never