-
Notifications
You must be signed in to change notification settings - Fork 3
/
.cirrus.yml
44 lines (43 loc) · 1.48 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
freebsd_instance:
image: freebsd-13-3-release-amd64
task:
env:
HOME: /tmp # cargo cache needs it
# Temporary workaround for https://github.com/rust-lang/rustup/issues/2774
RUSTUP_IO_THREADS: 1
matrix:
- name: FreeBSD 13 amd64 nightly
env:
VERSION: nightly
- name: FreeBSD 13 amd64 MSRV
env:
VERSION: 1.69.0
# Install Rust
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y --default-toolchain $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 ""
test_script:
- . $HOME/.cargo/env
- cargo +$VERSION test
# Test our minimal version spec.
minver_test_script:
- . $HOME/.cargo/env
- if [ "$VERSION" = "nightly" ]; then cargo +$VERSION update -Zminimal-versions; else true; fi
- if [ "$VERSION" = "nightly" ]; then cargo +$VERSION check --all-targets; else true; fi
clippy_script:
- . $HOME/.cargo/env
- if [ "$VERSION" = "nightly" ]; then cargo +$VERSION clippy --all-targets -- -D warnings; else true; fi
audit_script:
- . $HOME/.cargo/env
# install ca_root_nss due to https://github.com/rustsec/rustsec/issues/11
- pkg install -y ca_root_nss cargo-audit
- cargo audit
fmt_script:
- . $HOME/.cargo/env
- if [ "$VERSION" = "nightly" ]; then cargo +$VERSION fmt -- --check; fi
before_cache_script: rm -rf $HOME/.cargo/registry/index