forked from shepmaster/snafu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
98 lines (93 loc) · 2.52 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
env:
RUSTFLAGS: -D warnings
stable_test_task:
name: "Rust Stable"
container:
image: rust:latest
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
setup_script:
- rustup component add rustfmt
primary_test_script:
- rustc --version
- cargo test --all
without_backtrace_test_script:
- cargo test --manifest-path compatibility-tests/without-backtrace/Cargo.toml
futures_0.1_test_script:
- cargo test --manifest-path compatibility-tests/futures-0.1/Cargo.toml
compile_fail_test_script:
- cargo test --manifest-path compatibility-tests/compile-fail/Cargo.toml
lint_script:
- cargo fmt --all -- --check
before_cache_script: rm -rf $CARGO_HOME/registry/index
nightly_test_task:
name: "Rust Nightly"
container:
image: rustlang/rust:nightly
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
primary_test_script:
- cargo +nightly test
minimum_version_test_script:
- cargo +nightly -Z minimal-versions update
# These versions determined by trial and error
- cargo +nightly update -p backtrace-sys --precise 0.1.20
- cargo +nightly update -p libc --precise 0.2.7
- cargo +nightly test
futures_test_script:
- cd compatibility-tests/futures/
- rustc --version
- cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index
v1_34_test_task:
name: "Rust 1.34"
container:
image: rust:1.34
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
primary_test_script:
- cd compatibility-tests/v1_34/
- rustc --version
- cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index
v1_30_test_task:
name: "Rust 1.30"
container:
image: rust:1.30
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
primary_test_script:
- cd compatibility-tests/v1_30/
- rustc --version
- cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index
v1_18_test_task:
name: "Rust 1.18"
container:
# No Docker container for 1.18
image: rust:latest
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
setup_script:
- rustup install 1.18.0
- rustup default 1.18.0
primary_test_script:
- cd compatibility-tests/v1_18/
- rustc --version
- cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index