-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
50 lines (46 loc) · 1.19 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
test_task:
alias: tests
matrix:
- container:
image: rust:latest
- arm_container:
image: rust:latest
# only run on bors
only_if: $CIRRUS_BRANCH == 'staging' || $CIRRUS_BRANCH == 'trying'
registry_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
target_cache:
folder: target
fingerprint_script:
- rustc --version
- cat Cargo.lock
- uname -m
build_script: ./scripts/setup_ci.sh
test_script: ./scripts/ci_test.sh
before_cache_script: rm -rf $CARGO_HOME/registry/index
lint_task:
alias: lint
matrix:
- container:
image: rust:latest
# only run on bors
only_if: $CIRRUS_BRANCH == 'staging' || $CIRRUS_BRANCH == 'trying'
registry_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
target_cache:
folder: target
fingerprisnt_script:
- rustc --version
- cat Cargo.lock
build_script: rustup component add clippy rustfmt
test_script: ./scripts/ci_lint.sh
success_task:
name: ci passed?
container: { image: "busybox" }
# only run on bors
only_if: $CIRRUS_BRANCH == 'staging' || $CIRRUS_BRANCH == 'trying'
depends_on:
- tests
- lint