Skip to content

Commit d15e5fa

Browse files
authored
ci: split FreeBSD into two jobs (#4194)
1 parent 9cb495c commit d15e5fa

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

.cirrus.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,54 @@
11
freebsd_instance:
22
image: freebsd-12-2-release-amd64
3+
env:
4+
RUSTFLAGS: -D warnings
35

46
# Test FreeBSD in a full VM on cirrus-ci.com. Test the i686 target too, in the
57
# same VM. The binary will be built in 32-bit mode, but will execute on a
68
# 64-bit kernel and in a 64-bit environment. Our tests don't execute any of
79
# the system's binaries, so the environment shouldn't matter.
810
task:
9-
name: FreeBSD
10-
env:
11-
LOOM_MAX_PREEMPTIONS: 2
12-
RUSTFLAGS: -Dwarnings
11+
name: FreeBSD 64-bit
1312
setup_script:
1413
- pkg install -y bash curl
1514
- curl https://sh.rustup.rs -sSf --output rustup.sh
1615
- sh rustup.sh -y --profile minimal --default-toolchain stable
1716
- . $HOME/.cargo/env
18-
- rustup target add i686-unknown-freebsd
1917
- |
2018
echo "~~~~ rustc --version ~~~~"
2119
rustc --version
2220
test_script:
2321
- . $HOME/.cargo/env
2422
- cargo test --all --all-features
25-
- cargo doc --all --no-deps
26-
i686_test_script:
23+
24+
task:
25+
name: FreeBSD docs
26+
env:
27+
RUSTFLAGS: --cfg docsrs
28+
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
29+
setup_script:
30+
- pkg install -y bash curl
31+
- curl https://sh.rustup.rs -sSf --output rustup.sh
32+
- sh rustup.sh -y --profile minimal --default-toolchain nightly-2021-07-09
2733
- . $HOME/.cargo/env
2834
- |
29-
cargo test --all --all-features --target i686-unknown-freebsd
35+
echo "~~~~ rustc --version ~~~~"
36+
rustc --version
37+
test_script:
38+
- . $HOME/.cargo/env
39+
- cargo doc --lib --no-deps --all-features --document-private-items
40+
41+
task:
42+
name: FreeBSD 32-bit
43+
setup_script:
44+
- pkg install -y bash curl
45+
- curl https://sh.rustup.rs -sSf --output rustup.sh
46+
- sh rustup.sh -y --profile minimal --default-toolchain stable
47+
- . $HOME/.cargo/env
48+
- rustup target add i686-unknown-freebsd
49+
- |
50+
echo "~~~~ rustc --version ~~~~"
51+
rustc --version
52+
test_script:
53+
- . $HOME/.cargo/env
54+
- cargo test --all --all-features --target i686-unknown-freebsd

0 commit comments

Comments
 (0)