-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
65 lines (62 loc) · 1.6 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: rust
sudo: false
matrix:
include:
- rust: 1.27.0
env:
TARGET=x86_64-unknown-linux-gnu
- rust: stable
env:
TARGET=x86_64-unknown-linux-gnu
- rust: stable
env:
TARGET=i686-unknown-linux-gnu
- rust: beta
env:
TARGET=x86_64-unknown-linux-gnu
- rust: nightly
env:
TARGET=x86_64-unknown-linux-gnu
FEATURES='all benchmarks'
BENCH=1
- rust: nightly
env:
TARGET=x86_64-unknown-linux-gnu
FEATURES='pattern'
- rust: nightly
env:
TARGET=x86_64-unknown-linux-gnu
FEATURES='pattern'
TWOWAY_TEST_DISABLE_PCMP=1
- rust: nightly
env:
TARGET=i686-unknown-linux-gnu
FEATURES='pattern'
- rust: nightly
env:
TARGET=aarch64-unknown-linux-gnu
BUILD_ONLY=1
env:
global:
- HOST=x86_64-unknown-linux-gnu
addons:
apt:
packages:
# needed for i686-unknown-linux-gnu target
- gcc-multilib
install:
# "rustup error: cannot re-add" without this conditional check
- if [[ $HOST != $TARGET ]]; then rustup target add $TARGET; fi
branches:
only:
- master
script:
- |
cargo build --verbose --no-default-features --features "$FEATURES" &&
cargo build --verbose --features "$FEATURES" &&
([ -n "$BUILD_ONLY" ] || (
cargo test --verbose --lib &&
([ -z "$FEATURES" ] || cargo test --verbose --features "$FEATURES" ) &&
([ "$BENCH" != 1 ] || cargo bench --verbose --features "$FEATURES") &&
cargo doc --verbose --features "$FEATURES"
))