-
Notifications
You must be signed in to change notification settings - Fork 9
/
.cirrus.yml
64 lines (60 loc) · 2.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
clippy_task:
container:
image: rust:latest
component_script: rustup component add clippy
lockfile_script: cargo generate-lockfile
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
clippy_script: cargo clippy -- -D warnings
before_cache_script: rm -rf $CARGO_HOME/registry/index
rustfmt_task:
container:
# Our .rustfmt.toml uses currently unstable features
image: rustlang/rust:nightly
component_script: rustup component add rustfmt
fmt_script: cargo fmt --all -- --check
linux_task:
matrix:
- container:
image: rust:1.34.0
- container:
image: rust:latest
- allow_failures: true
container:
image: rustlang/rust:nightly
keyutils_script: apt-get update && apt-get install libkeyutils-dev
lockfile_script: cargo generate-lockfile
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
build_script: cargo build
test_script: cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index
minimal_version_task:
# We make sure we can build with the minimum specified versions
container:
image: rustlang/rust:nightly
lockfile_script: cargo generate-lockfile -Z minimal-versions
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
build_script: cargo build
before_cache_script: rm -rf $CARGO_HOME/registry/index
coverage_task:
container:
image: rust:latest
environment:
CODECOV_TOKEN: ENCRYPTED[1e221ef78a37c960613ff80db7141f3158e3218031934395466f4720f450b7acfd74e587819435ce9be0b13fa1b68f1b]
keyutils_script: apt-get update && apt-get install libkeyutils-dev
tarpaulin_cache:
folder: $CARGO_HOME/bin
populate_script: cargo install --version 0.8.7 cargo-tarpaulin
fingerprint_script: cargo install --list
lockfile_script: cargo generate-lockfile
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
coverage_script: cargo tarpaulin --out Xml
upload_script: bash <(curl -s https://codecov.io/bash) -X gcov
before_cache_script: rm -rf $CARGO_HOME/registry/index