forked from magic-wormhole/magic-wormhole.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (48 loc) · 1.05 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
addons:
apt:
packages:
- libssl-dev
#cache: cargo
# cache less, per https://levans.fr/rust_travis_cache.html
cache:
directories:
- /home/travis/.cargo
rust:
- stable
- beta
- 1.36.0 # MSRV
- nightly
branches:
except:
- /^WIP-.*$/
matrix:
include:
- rust: 1.38.0 # lock down for consistent rustfmt behavior
env: RUSTFMT
install:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- rust: 1.38.0
env: CLIPPY
install:
- rustup component add clippy
script:
- cargo clippy
allow_failures:
- rust: nightly
before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
fi
rm -rf /home/travis/.cargo/registry
script:
- cargo clean
- cargo build --verbose --all
- cargo test --verbose --all
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi