|
1 | 1 | freebsd_instance: |
2 | 2 | image: freebsd-12-2-release-amd64 |
| 3 | +env: |
| 4 | + RUSTFLAGS: -D warnings |
3 | 5 |
|
4 | 6 | # Test FreeBSD in a full VM on cirrus-ci.com. Test the i686 target too, in the |
5 | 7 | # same VM. The binary will be built in 32-bit mode, but will execute on a |
6 | 8 | # 64-bit kernel and in a 64-bit environment. Our tests don't execute any of |
7 | 9 | # the system's binaries, so the environment shouldn't matter. |
8 | 10 | task: |
9 | | - name: FreeBSD |
10 | | - env: |
11 | | - LOOM_MAX_PREEMPTIONS: 2 |
12 | | - RUSTFLAGS: -Dwarnings |
| 11 | + name: FreeBSD 64-bit |
13 | 12 | setup_script: |
14 | 13 | - pkg install -y bash curl |
15 | 14 | - curl https://sh.rustup.rs -sSf --output rustup.sh |
16 | 15 | - sh rustup.sh -y --profile minimal --default-toolchain stable |
17 | 16 | - . $HOME/.cargo/env |
18 | | - - rustup target add i686-unknown-freebsd |
19 | 17 | - | |
20 | 18 | echo "~~~~ rustc --version ~~~~" |
21 | 19 | rustc --version |
22 | 20 | test_script: |
23 | 21 | - . $HOME/.cargo/env |
24 | 22 | - 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 |
27 | 33 | - . $HOME/.cargo/env |
28 | 34 | - | |
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