num-traits/.travis.yml

35 lines
1004 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
- |
(for feature in '' bigint rational complex; do
cargo test --verbose --no-default-features --features="$feature" || exit 1
done)
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 ] &&
2015-11-13 02:20:03 +00:00
openssl aes-256-cbc -K $encrypted_9e86330b283d_key -iv $encrypted_9e86330b283d_iv -in .travis/deploy.enc -out .travis/deploy -d &&
chmod 600 .travis/deploy &&
2015-11-13 02:30:44 +00:00
eval "$(ssh-agent -s)" &&
2015-11-13 02:20:03 +00:00
ssh-add .travis/deploy &&
2015-05-19 16:22:06 +00:00
pip install ghp-import --user $USER &&
2015-11-13 02:40:13 +00:00
cp doc/* target/doc/ &&
2015-05-19 16:22:06 +00:00
$HOME/.local/bin/ghp-import -n target/doc &&
2015-11-13 02:12:28 +00:00
git push -qf ssh://git@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
2015-01-02 06:09:50 +00:00
notifications:
email:
on_success: never