forked from asomers/mockall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
42 lines (39 loc) · 1.04 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
common: &COMMON
env:
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
cargo_cache:
folder: $HOME/.cargo/registry
build_script:
- cargo build $CARGO_ARGS
test_script:
# Mockall has unit tests in the examples, so we must pass --all-targets
- cargo test $CARGO_ARGS --all-targets
doc_script:
- cargo doc $CARGO_ARGS --no-deps
task:
matrix:
- name: 1.42.0
container:
image: rust:1.42.0
- name: stable
container:
image: rust:latest
<< : *COMMON
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: nightly
container:
image: rustlang/rust:nightly
env:
CARGO_ARGS: --all-features
<< : *COMMON
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