Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add .travis.yml
  • Loading branch information
dpc committed Aug 17, 2016
1 parent 2915460 commit 5cba675
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .travis.yml
@@ -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

0 comments on commit 5cba675

Please sign in to comment.