-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
39 lines (35 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: rust
cache: cargo
rust:
- stable
- 1.39.0
- beta
- nightly
install:
- sudo apt-get install -y liblzma-dev
- sudo apt-get install -y libbz2-dev
# disabled until fmt stabilized: cargo install -f rustfmt
# - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo install -f clippy; fi
# NOTE: travis executes all script steps even if one fails, so we keep it in a single step to fail fast
script:
- |
set -o errexit
# disabled until fmt stabilized: ./scripts/check-fmt.sh
#if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo clippy && cd lib && cargo clippy; cd ..; fi
make all
make travistest
if [ ! -z "$RELEASE" ] ; then cd tester; cargo build --release; cd ..; rm -Rf /tmp/rdedup-tester/; ./target/release/tester 200; fi
if [ ! -z "$RELEASE" ] ; then ./scripts/e2e-test.sh; fi
if [ ! -z "$RELEASE" ] ; then cd lib && make travistest; fi
env:
global:
- RUST_BACKTRACE=1
- RUST_TEST_THREADS=1
matrix:
-
- RELEASE=true
notifications:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: never