-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
124 lines (105 loc) · 3.02 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
branches:
only:
- master
- staging
- trying
dist: trusty
# cargo-tarpaulin depends on sudo: true
sudo: true
addons:
apt:
packages:
- gcc
- g++
- libssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- libiberty-dev
- pkg-config
language: rust
rust:
- stable
matrix:
allow_failures:
- rust: nightly
cache:
directories:
- "$HOME/.cargo"
- "$HOME/.local"
- "$TRAVIS_BUILD_DIR/target"
env:
global:
- DEADLINKS_VERS=0.3.0
- RUSTFLAGS="-C link-dead-code"
- RUST_LOG=off
- TARPAULIN_VERS=0.7.0
install:
- cargo install --list
- cd $TRAVIS_BUILD_DIR
- cargo update
script: skip
jobs:
include:
- stage: test
rust: 1.31.0
script:
- cargo test --verbose --all -- --test-threads=1
- stage: test
rust: stable
script:
- cargo test --verbose --all -- --test-threads=1
- stage: test
rust: beta
script:
- cargo test --verbose --all -- --test-threads=1
- stage: test
rust: nightly-2019-01-29
script:
- cargo test --verbose --all -- --test-threads=1
- stage: test
rust: nightly
script:
- cargo test --verbose --all -- --test-threads=1
- stage: quality
env:
- FEATURE=non-fatal-checks
rust: stable
install:
- cargo-deadlinks -V | grep $DEADLINKS_VERS || cargo install cargo-deadlinks --vers $DEADLINKS_VERS --force
script:
- cargo doc --no-deps && cargo deadlinks --dir target/doc || true
- stage: quality
env:
- FEATURE=fmt
rust: stable
install:
- rustup component add rustfmt-preview
# rustfmt fails if can't find generated files.
- echo "" > src/release.rs
script:
- cargo fmt -- --check
- stage: quality
rust: stable
env:
- FEATURE=clippy
install:
- rustup component add clippy-preview
script:
- cargo clippy -- -D warnings
- stage: quality
rust: nightly-2019-01-29
env:
- FEATURE=cov
install:
- cargo tarpaulin -V | grep $TARPAULIN_VERS || RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin --vers $TARPAULIN_VERS --force
script:
- travis_wait 30 cargo tarpaulin --all -v --ciserver travis-ci --coveralls $TRAVIS_JOB_ID -- --test-threads=1
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/879ba3d8386f731f57fd
on_success: change
slack:
secure: RIRaNrNhgX0u13vmVZTPrUVtaKGggGvkwG6e21kvUHyhRXx0SfUaEVZDQww3Gi7zkQnC3O0H6xGp3fzhEqPl9U07FGUD2TcMOZ+NPbuOgSDdu8TYSELmqZD3bTvtWlHBJzrgkAHky8chmMC2SEAJF6FZpmYLyoUTNU1omIg6G0wMvzJ6v/GsvJX9kgTAnKTU2vDyKyLhHECptHmvmqvRvhA1URbyExulaY3wohff79pCmXPqAw92/o2lv2SdM0LLzhyJsXTDdsVPZGuSF+yG3yPMXuvz1wm7uUb2OISE4YB1VoLaX/azf6XlO8Vm0+Zhv9buJB74ry6As3fto5IaIxQFXLww8rd1zPWwo5KLGJGtG3gUtA5xJMvT2ILuxlKZk86PSJbFo9FIeQ5sgJOai9Hp+Nxtf38oUU8XdPgo3Pgf9EA2t3A9X6DFjStHBFhEkmdKA15qYd9TEbRXJ3+unIuCB+GUXS29nzLY/hd/DqyDNBChjdcenhFG0gumpAegUhmut7zCD4rK9X03ylaC2ZzsVFob4y11cOZSOtxCnl3KDQ7pTifWCrXhCBfYLIa1OOjYHa9rTBsfotx69l4DaZp63BNnstabkxiXpKubVpNqJkvbXA07+CD+mjIVV4c+9RUxiOKLvAnuDKe906h8gvWM+OxukitoCqPElg5KTcc=
on_success: change