diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..79ca28e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +language: rust +cache: + - cargo +rust: + - stable + - 1.23.0 + - beta + - nightly + +script: + # `patch` section is recent addition + - if [ "$TRAVIS_RUST_VERSION" != "1.23.0" ]; then make all ; fi + - if [ "$TRAVIS_RUST_VERSION" == "1.23.0" ]; then make build ; fi + - if [ "$TRAVIS_RUST_VERSION" != "1.23.0" ]; then make travistest ; fi + - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then make bench ; fi + - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo build --no-default-features; cargo test --no-default-features; fi + - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo test -p test_edition2018; fi + +env: + global: + - RUST_BACKTRACE=1 + matrix: + - + - RELEASE=true + +notifications: + 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 |