num-traits/.travis.yml

30 lines
909 B
YAML
Raw Normal View History

2014-12-23 17:50:53 +00:00
language: rust
2015-05-19 16:22:06 +00:00
rust:
- 1.0.0
- beta
- nightly
sudo: false
2014-09-16 17:35:35 +00:00
script:
- cargo build --verbose
- cargo test --verbose
2015-05-19 16:22:06 +00:00
- |
[ $TRAVIS_RUST_VERSION != nightly ] || (
cargo bench &&
cargo test --verbose --manifest-path=num-macros/Cargo.toml
)
2014-12-23 17:50:53 +00:00
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
2015-05-19 16:22:06 +00:00
[ $TRAVIS_RUST_VERSION = nightly ] &&
2014-12-23 17:50:53 +00:00
echo '<meta http-equiv=refresh content=0;url=num/index.html>' > target/doc/index.html &&
2015-05-19 16:22:06 +00:00
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
2014-09-16 17:35:35 +00:00
env:
2014-12-23 17:50:53 +00:00
global:
secure: NNQ8QgQFZ05OhljZiuCg39AEPU7Yhko/shFlJG1lqYFoFrELibSmBPd7zJsTubufHRddn0ed6IH7qPLnzWJ/cS+dxwAopuqCFzGMOcd/JW8DJgD5PUBA8EVh8x0tNFJVxxdnGac1ufRneWMvMIxH2hO1DMc+8FZBBd7u1DNG1Lk=
2015-01-02 06:09:50 +00:00
notifications:
email:
on_success: never