forked from assert-rs/assert_cmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (50 loc) · 1.15 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
sudo: false
language: rust
rust:
- 1.22.0 # Two releases back
- stable
- beta
- nightly
matrix:
include:
- env: RUSTFMT
rust: 1.27.0 # `stable`: Locking down for consistent behavior
install:
- rustup component add rustfmt-preview
script:
- cargo fmt -- --write-mode=diff
- env: RUSTFLAGS="-D warnings"
rust: 1.27.0 # `stable`: Locking down for consistent behavior
install:
script:
- cargo check --tests --all-features
- env: CLIPPY
rust: nightly-2018-07-17
install:
- rustup component add clippy-preview
script:
- cargo clippy --all-features -- -D clippy
install:
- rustc -Vv
- cargo -V
- export PATH=$HOME/.cargo/bin:$PATH
script:
- cargo check --verbose
- cargo check --verbose --no-default-features
- cargo check --verbose --all-features
- rm -rf target/debug/deps/*assert_cmd* # Avoid docmatic problems
- cargo test --verbose --all-features
branches:
only:
# Release tags
- /^v\d+\.\d+\.\d+.*$/
- master
cache:
apt: true
cargo: true
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
notifications:
email:
on_success: never