forked from asomers/mockall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
48 lines (44 loc) · 1.21 KB
/
.cirrus.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
common: &COMMON
env:
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
cargo_cache:
folder: $HOME/.cargo/registry
build_script:
- cargo build $CARGO_ARGS
doc_script:
- cargo doc $CARGO_ARGS --no-deps
task:
name: MSRV
container:
image: rust:1.42.0
<< : *COMMON
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: stable
container:
image: rust:latest
<< : *COMMON
test_script:
# Mockall has unit tests in the examples, so we must pass --all-targets
- cargo test $CARGO_ARGS --all-targets
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: nightly
container:
image: rustlang/rust:nightly
env:
CARGO_ARGS: --all-features
<< : *COMMON
test_script:
# Mockall has unit tests in the examples, so we must pass --all-targets
- cargo test $CARGO_ARGS --all-targets
lint_script:
- rustup component add clippy
- cargo clippy $CARGO_ARGS --all-targets --workspace -- -D warnings
reproducibility_script:
- env RUSTFLAGS="--cfg reprocheck" cargo check $CARGO_ARGS --all-targets
minver_script:
- cargo update -Zminimal-versions
- cargo test $CARGO_ARGS
before_cache_script: rm -rf $CARGO_HOME/registry/index