-
Notifications
You must be signed in to change notification settings - Fork 3
/
.cirrus.yml
89 lines (83 loc) · 2.22 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
setup: &FREEBSD_SETUP
env:
HOME: /tmp # cargo needs it
RUST_BACKTRACE: full # Better info for debugging test failures.
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y --profile=minimal --default-toolchain ${VERSION}
- pkg install -y fusefs-libs3 pkgconf
- kldload fusefs
test: &TEST
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock || echo ""
build_script:
- . $HOME/.cargo/env || true
- cargo build
test_script:
- . $HOME/.cargo/env || true
- cargo test
task:
env:
VERSION: 1.74.1
name: FreeBSD 13.3 MSRV
freebsd_instance:
image: freebsd-13-3-release-amd64
<< : *FREEBSD_SETUP
<< : *TEST
before_cache_script: rm -rf $HOME/.cargo/registry/index
task:
name: FreeBSD 14.0 nightly
env:
VERSION: nightly
freebsd_instance:
image: freebsd-14-0-release-amd64-ufs
<< : *FREEBSD_SETUP
<< : *TEST
clippy_script:
- . $HOME/.cargo/env
- rustup component add clippy
- cargo clippy --all-targets -- -D warnings
# Test our minimal version spec
minver_test_script:
- . $HOME/.cargo/env
- cargo update -Zminimal-versions
- cargo check --all-targets
before_cache_script: rm -rf $HOME/.cargo/registry/index
task:
name: Linux MSRV
container:
image: rust:1.74.1
kvm: true
setup_script:
- apt-get update
- apt-get install -y zstd libfuse3-dev fuse kmod
<< : *TEST
before_cache_script: rm -rf $HOME/.cargo/registry/index
task:
name: Lint
container:
image: rustlang/rust:nightly
fmt_script:
- rustup component add rustfmt
- cargo fmt -- --check --color=never
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: Audit
# This task has a low probability of failure, so defer it until after other
# tasks have passed, to save compute resources.
depends_on:
- Linux MSRV
- FreeBSD 13.3 MSRV
- FreeBSD 14.0 nightly
- Lint
env:
VERSION: nightly
freebsd_instance:
image: freebsd-14-0-release-amd64-ufs
<< : *FREEBSD_SETUP
audit_script:
# install ca_root_nss due to https://github.com/rustsec/rustsec/issues/1137
- pkg install -y ca_root_nss cargo-audit
- . $HOME/.cargo/env || true
- cargo audit