task:
  name: freebsd-stable
  freebsd_instance:
    image_family: freebsd-12-1
  env:
    RUST_BACKTRACE: 1
  setup_script:
    - pkg install -y curl git
    - curl https://sh.rustup.rs -sSf --output rustup.sh
    - sh rustup.sh -y
    - . $HOME/.cargo/env
  check_script:
    - . $HOME/.cargo/env
    - cargo check --all-targets
  build_script:
    - . $HOME/.cargo/env
    - cargo build --all-targets --verbose
  test_script:
    - . $HOME/.cargo/env
    - cargo test --examples
    - cargo test --doc
    - cargo test --lib
