-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
32 lines (30 loc) · 867 Bytes
/
.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
# Check that formatting is correct using nightly rust.
fmt_task:
container:
image: rustlang/rust:nightly
install_script: rustup component add rustfmt-preview
check_script: cargo fmt -- --check
# Run clippy.
clippy_task:
container:
image: rustlang/rust:nightly
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
install_script: rustup component add clippy-preview
check_script: cargo clippy
before_cache_script: rm -rf $CARGO_HOME/registry/index
# Build and test.
test_task:
matrix:
- container:
image: rust:latest
- allow_failures: true
container:
image: rustlang/rust:nightly
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.toml
build_script: cargo build
test_script: cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index