forked from indexmap-rs/indexmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (56 loc) · 1.44 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
language: rust
sudo: false
matrix:
include:
- rust: 1.32.0
- rust: 1.34.2
- rust: stable
env:
- FEATURES='serde-1'
- rust: stable
env:
- FEATURES='rayon'
- rust: stable
env:
- FEATURES='std'
- rust: beta
- rust: nightly
env:
- TEST_BENCH=1
- rust: nightly
env:
- FEATURES='test_low_transition_point'
- rust: 1.36.0
env: TARGET=thumbv6m-none-eabi
before_script:
- rustup target add $TARGET
- set -ex
script:
- cargo build -vv --target=$TARGET
- cargo build -v -p test-nostd --target=$TARGET
- rust: stable
env: TARGET=thumbv6m-none-eabi
before_script:
- rustup target add $TARGET
- set -ex
script:
- cargo build -vv --target=$TARGET
- cargo build -v -p test-nostd --target=$TARGET
branches:
only:
- master
script:
- |
cargo build --verbose --features "$FEATURES" &&
if [ -z "$SKIP_TEST" ]; then
cargo test --verbose --features "$FEATURES" &&
cargo test --release --verbose --features "$FEATURES" &&
if [ "$FEATURES" = "serde-1" ]; then
cargo test --verbose -p test-serde &&
cargo test --release --verbose -p test-serde
fi
fi &&
if [ -n "$TEST_BENCH" ]; then
cargo test -v --benches --no-run --features "$FEATURES"
fi &&
cargo doc --verbose --features "$FEATURES"