forked from shepmaster/snafu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
160 lines (153 loc) · 4.95 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -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
backtrace_shim_test_script:
- cargo test --manifest-path compatibility-tests/backtrace-shim/Cargo.toml
backtraces_impl_backtrace_crate_test_script:
- cargo test --manifest-path compatibility-tests/backtraces-impl-backtrace-crate/Cargo.toml
futures_0.1_test_script:
- cargo test --manifest-path compatibility-tests/futures-0.1/Cargo.toml
context_selectors_have_documentation_test_script:
- cargo test --manifest-path compatibility-tests/context-selectors-have-documentation/Cargo.toml
renamed_import_test_script:
- cargo test --manifest-path compatibility-tests/renamed-import/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
doc_test_task:
name: "Docs"
env:
# unused-braces is due to https://github.com/rust-lang/rust/issues/70717
RUSTFLAGS: "-D warnings -A unused-braces"
RUSTDOCFLAGS: "${RUSTFLAGS}"
container:
image: rustlang/rust:nightly
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
version_information_script:
- rustc +nightly --version
docs_script:
- cargo +nightly doc
backtraces_docs_script:
- cargo +nightly doc --features=backtraces
backtraces_impl_backtrace_crate_docs_script:
- cargo +nightly doc --features=backtraces-impl-backtrace-crate
unstable_backtraces_impl_std_docs_script:
- cargo +nightly doc --features=unstable-backtraces-impl-std
futures_01_docs_script:
- cargo +nightly doc --features=futures-01
futures_docs_script:
- cargo +nightly doc --features=futures
before_cache_script: rm -rf $CARGO_HOME/registry/index
doc_tests_task:
name: "Documentation Tests"
container:
image: rustlang/rust:nightly
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
version_information_script:
- rustc +nightly --version
backtraces_doctests_script:
- cargo +nightly test --doc --features=backtraces
backtraces_impl_backtrace_crate_doctests_script:
- cargo +nightly test --doc --features=backtraces-impl-backtrace-crate
# Disabled because every doctest would need to enable the feature
# from the standard library too.
#
# unstable_backtraces_impl_std_doctests_script:
# - cargo +nightly test --doc --features=unstable-backtraces-impl-std
futures_01_doctests_script:
- cargo +nightly test --doc --features=futures-01
futures_doctests_script:
- cargo +nightly test --doc --features=futures,internal-dev-dependencies
before_cache_script: rm -rf $CARGO_HOME/registry/index
no_std_test_task:
name: "Rust Stable (no_std)"
container:
image: rust:latest
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
setup_script:
- rustup target add thumbv6m-none-eabi
primary_test_script:
- rustc --version
- cargo build --no-default-features --target thumbv6m-none-eabi
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:
- rustc +nightly --version
- cargo +nightly test
std_backtrace_test_script:
- RUST_BACKTRACE=1 cargo +nightly test --manifest-path compatibility-tests/backtraces-impl-std/Cargo.toml
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:0.2.0 --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_31_test_task:
name: "Rust 1.31"
container:
image: rust:1.31
cpu: 1
memory: 2Gi
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
primary_test_script:
- cd compatibility-tests/v1_31/
- rustc --version
- cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index