-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
43 lines (40 loc) · 901 Bytes
/
.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
language: rust
cache: cargo
dist: focal
# this matrix generates jobs for the `test` stage
os:
- linux
- windows
rust:
- nightly
- beta
- stable
- 1.35.0
# run only one job first to see if it fails, then run the rest
jobs:
include:
- stage: fast-test
os: linux
rust: stable
# additional behaviour just for this comprehensive job
before_install: |
rustup component add rustfmt clippy
cargo install cargo-audit cargo-tarpaulin
script: |
cargo fmt -- --check
cargo audit --deny warnings
cargo clippy --all-targets -- -D warnings
cargo test
cargo doc --no-deps
after_success: |
cargo tarpaulin --out xml
bash <(curl -s https://codecov.io/bash)
exclude:
- stage: test
os: linux
rust: stable
allow_failures:
- rust: nightly
stages:
- fast-test
- test