Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add .travis.yml
- Loading branch information
Showing
1 changed file
with
15 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
language: rust | ||
sudo: false | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
script: | ||
- cargo build --verbose | ||
- ([ $TRAVIS_RUST_VERSION != nightly ] || cargo build --verbose --no-default-features) | ||
- ([ $TRAVIS_RUST_VERSION != nightly ] || cargo build --verbose --features nightly) | ||
- cargo test --verbose | ||
- ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --no-default-features) | ||
- cargo test --verbose --manifest-path env/Cargo.toml | ||
- cargo run --verbose --manifest-path tests/max_level_features/Cargo.toml | ||
- cargo run --verbose --manifest-path tests/max_level_features/Cargo.toml --release | ||
- ([ $TRAVIS_RUST_VERSION != nightly ] || cargo doc --no-deps --features nightly) | ||
- CARGO_TARGET_DIR=target cargo doc --no-deps --manifest-path env/Cargo.toml | ||
after_success: | | ||
[ $TRAVIS_BRANCH = master ] && | ||
[ $TRAVIS_PULL_REQUEST = false ] && | ||
[ $TRAVIS_RUST_VERSION = nightly ] && | ||
echo '<meta http-equiv=refresh content=0;url=log/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 | ||
- make all | ||
- make travistest | ||
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then make bench ; fi | ||
|
||
env: | ||
global: | ||
secure: bNUxFmA5uEdKKdVDtgb+5WQuMRDZ6QxK5152sIZWSimxyr/x5erNZ1uacPh02Ng92dbUQ66wz90WPmqTwoL0EeJ/FmZDd29hRHXe82MNpz47QX3cGMgFNldQ2GmJmCHBXKu373B80o/ZB+BTVcYcl1ksTXuIhQg2wZtXh8bZ9F4= | ||
- RUST_BACKTRACE=1 | ||
matrix: | ||
- | ||
- RELEASE=true | ||
|
||
notifications: | ||
email: | ||
on_success: never | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/87a331e1a21456b6e2ad | ||
on_success: change # options: [always|never|change] default: always | ||
on_failure: change # options: [always|never|change] default: always | ||
on_start: false # default: false |