third_party_rust_cfg-if/.travis.yml
2016-01-25 12:56:29 -08:00

26 lines
1.3 KiB
YAML

language: rust
rust:
- stable
- beta
- nightly
sudo: false
script:
- cargo build --verbose
- cargo test --verbose
- rustdoc --test README.md -L target/debug -L target/debug/deps
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
echo '<meta http-equiv=refresh content=0;url=cfg_if/index.html>' > target/doc/index.html &&
pip install ghp-import --user $USER &&
$HOME/.local/bin/ghp-import -n target/doc &&
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
global:
secure: rPrap+rZmhWvNDXFP4auc31RA371E9grd5A7Zl0egZYbA+/OI9g4AZAD1Op4pgRX5HdiYtHAilvyKD0ITRrXdD9eoEOwx11y39XvcOOfJeYkP+SQaNXR9C2adxZ3oo7OFOz7ugqgISnHq37GHX8Yjir3cunlH5xvW5HKfrhMkTb8w4xO8wdo5PPx6dpeqcIkQpf5pAiOdeWAVzwbYFXqL4x32hmouumOidVCoYPPogWHjkvnOosKpagHSO1+eDZrQCyJYzBmb3infGqYvGdtST8rupu8DSD9mdQa1wcy8oLhJC6T/YDNBjh1Ab7/LgmI771fMQ3rZ2jWGI1GE/0Ht7GcysJi78k+avMMsbNTNZQEfcKZJU6HbQOWGuw1fkxNpGVn4M5MORH1GxTJMcqiNJCKbJJwv7fSpOG9fnsN+Rp+TYGma8+DjGLNSxrToIfjsKel+h43V1t9BNyK9sqssXzrPnJRSRZOixgWtHCsu7w7bEKZl2XJCESd65QiAOVXs6D7Y1Vrv4EKA47fO09VGYJCHlB5BlPJBVFXYwmoKKUs53/GzoLBjj9UI19p3EDVXvuyLmu2GtlIcTV5+YuHYDGFDfv12hYV2h4nMiZkZZ1lZdbojf24W+OATfzuZKqjbK9d5zwDtBzFgMd36gAnz8y3mQwUGqHhhMw+vV1r0N0=
notifications:
email:
on_success: never