From 5cba67524a598e2710f34eeebe3c2f8ec1f9a20d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Wed, 17 Aug 2016 11:53:27 -0700 Subject: [PATCH] Add .travis.yml --- .travis.yml | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index 89e7ae0..a91a66d 100644 --- a/.travis.yml +++ b/.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 '' > 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