-
Notifications
You must be signed in to change notification settings - Fork 4
/
.cirrus.yml
68 lines (65 loc) · 2.01 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
freebsd_instance:
image: freebsd-13-3-release-amd64
setup: &SETUP
env:
HOME: /tmp # cargo cache needs it
# Temporary workaround for https://github.com/rust-lang/rustup/issues/2774
RUSTUP_IO_THREADS: 1
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
# Record some info about the test environment
sysinfo_script:
- mount
- df -h
- sysctl hw.model hw.ncpu hw.physmem
- freebsd-version
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y
- $HOME/.cargo/bin/rustup toolchain install $VERSION
# aio on ufs is considered unsafe
- sysctl vfs.aio.enable_unsafe=1
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock || echo ""
task:
name: FreeBSD 13.3 MSRV
env:
VERSION: 1.70.0
<< : *SETUP
test_script:
- . $HOME/.cargo/env
- cargo +$VERSION test
- cargo +$VERSION doc --no-deps
# Also run tests with sudo, because some need it for mdconfig
- sudo -E cargo test --tests
before_cache_script: rm -rf $HOME/.cargo/registry/index
task:
name: FreeBSD 13.3 nightly
env:
VERSION: nightly
<< : *SETUP
test_script:
- . $HOME/.cargo/env
- cargo +$VERSION test --all-targets
# Also run tests with sudo, because some need it for mdconfig
- sudo -E cargo test --tests
clippy_script:
- . $HOME/.cargo/env
- cargo +$VERSION clippy --all-features --all-targets -- -D warnings
audit_script:
- . $HOME/.cargo/env
# install ca_root_nss due to https://github.com/rustsec/rustsec/issues/1137
- pkg install -y ca_root_nss cargo-audit
- cargo audit
# Test our minimal version spec
minver_test_script:
- . $HOME/.cargo/env
- cargo +$VERSION update -Zdirect-minimal-versions
- cargo +$VERSION check --all-targets
- cargo +$VERSION doc --no-deps
fmt_script:
- . $HOME/.cargo/env
- rustup component add --toolchain $VERSION rustfmt
- cargo +$VERSION fmt --all -- --check --color=never
before_cache_script: rm -rf $HOME/.cargo/registry/index