freebsd_instance:
image: freebsd-13-1-release-amd64
env:
TOOLCHAIN: 1.56.1
setup_common: &SETUP
setup_script:
- kldload mqueuefs
- fetch https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y --profile=minimal --default-toolchain $TOOLCHAIN
- rm rustup.sh
- . $HOME/.cargo/env || true
- rustup --version
- cargo -Vv
- rustc -Vv
- ifconfig
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock || echo ""
task:
name: "Builds on FreeBSD 13"
<<: *SETUP
env:
RUSTFLAGS: "-D warnings"
test_script:
- . $HOME/.cargo/env || true
- cargo +$TOOLCHAIN build --release --all-targets
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: "Runs \"cargo test\" on FreeBSD 13"
<<: *SETUP
env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: -D warnings
test_script:
- . $HOME/.cargo/env || true
- cargo +$TOOLCHAIN test --all --all-features -- --nocapture
- cargo +$TOOLCHAIN doc --no-deps
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: "Runs \"cargo clippy\" on FreeBSD 13"
<<: *SETUP
install_script:
- . $HOME/.cargo/env || true
- rustup component add --toolchain $TOOLCHAIN clippy
test_script:
- . $HOME/.cargo/env || true
- cargo +$TOOLCHAIN clippy --all-targets
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: "Runs \"cargo fmt\" on FreeBSD 13"
<<: *SETUP
install_script:
- . $HOME/.cargo/env || true
- rustup +$TOOLCHAIN component add rustfmt
test_script:
- . $HOME/.cargo/env || true
- cargo +$TOOLCHAIN fmt --all -- --check
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: "Runs \"cargo publish --dry-run\" on FreeBSD 13"
<<: *SETUP
test_script:
- . $HOME/.cargo/env || true
- cargo +$TOOLCHAIN publish --dry-run
before_cache_script: rm -rf $CARGO_HOME/registry/index