-
Notifications
You must be signed in to change notification settings - Fork 7
/
.cirrus.yml
65 lines (61 loc) · 1.7 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
setup: &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}-x86_64-unknown-freebsd
build: &BUILD
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock || echo ""
build_script:
- . $HOME/.cargo/env || true
- cargo build --all
test_script:
- . $HOME/.cargo/env || true
- cargo test --all
task:
env:
VERSION: 1.70.0
name: FreeBSD 13.3 MSRV
freebsd_instance:
image: freebsd-13-3-release-amd64
<< : *SETUP
<< : *BUILD
before_cache_script: rm -rf $HOME/.cargo/registry/index
task:
name: FreeBSD 14.1 nightly
env:
VERSION: nightly
freebsd_instance:
image: freebsd-14-1-release-amd64-ufs
<< : *SETUP
<< : *BUILD
clippy_script:
- . $HOME/.cargo/env
- rustup component add clippy
- cargo clippy --all-features --all-targets -- -D warnings
fmt_script:
- . $HOME/.cargo/env
- rustup component add rustfmt
- cargo fmt --all -- --check --color=never
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 update -Zdirect-minimal-versions
- cargo check --all-targets
before_cache_script: rm -rf $HOME/.cargo/registry/index
task:
name: Linux MSRV
container:
image: rust:1.70.0
setup_script:
- rustup component add rustfmt
<< : *BUILD
before_cache_script: rm -rf $HOME/.cargo/registry/index