freebsd_instance:
  image: freebsd-12-0-release-amd64

task:
  name: stable x86_64-unknown-freebsd
  setup_script:
    - pkg install -y curl gmake py36-sphinx
    - curl https://sh.rustup.rs -sSf --output rustup.sh
    - sh rustup.sh -y
  build_script:
    - . $HOME/.cargo/env
    - cargo build
  test_script:
    - . $HOME/.cargo/env
    - cargo test
    - |
      mkdir installdir_test
      make install DESTDIR=installdir_test SPHINXBUILD='sphinx-build-3.6'
      [ `ls installdir_test/usr/local/bin | wc -l` -gt 0 ]

freebsd_instance:
  image: freebsd-12-0-release-amd64

task:
  name: stable x86_64-unknown-freebsd
  setup_script:
    - pkg install -y curl gmake
    - curl https://sh.rustup.rs -sSf --output rustup.sh
    - sh rustup.sh -y
  build_script:
    - . $HOME/.cargo/env
    - cargo build
  test_script:
    - . $HOME/.cargo/env
    - cargo test

Disable installation test on FreeBSD due to sphinx-build issue
Disable installation test on FreeBSD due to sphinx-build issue
