1task:
2  name: freebsd
3  freebsd_instance:
4    image: freebsd-12-1-release-amd64
5  setup_rust_script:
6    - pkg install -y curl git bash
7    - curl https://sh.rustup.rs -sSf --output rustup.sh
8    - sh rustup.sh --default-toolchain none -y --profile=minimal
9  cargo_bin_cache:
10    folder: ~/.cargo/bin
11  target_cache:
12    folder: target
13  prepare_script:
14    - . $HOME/.cargo/env
15    - git config --global user.email "user@example.com"
16    - git config --global user.name "User"
17    - ./y.rs prepare
18  test_script:
19    - . $HOME/.cargo/env
20    - # Enable backtraces for easier debugging
21    - export RUST_BACKTRACE=1
22    - # Reduce amount of benchmark runs as they are slow
23    - export COMPILE_RUNS=2
24    - export RUN_RUNS=2
25    - ./test.sh
26