# Cirrus CI configuration
# https://cirrus-ci.com/github/libexif/libexif

task:
  name: FreeBSD
  freebsd_instance:
    matrix:
      # There isn't a stable 13.0 image yet (2019-12)
      image_family: freebsd-13-0-snap
      image_family: freebsd-12-1
      # The stable 11.3 image causes "Agent is not responding" so use a snapshot
      image_family: freebsd-11-3-snap

  env:
    # Set to 10 instead of 1 to avoid problems when new commits are submitted
    # during a run.
    CIRRUS_CLONE_DEPTH: 10
    CFLAGS: -Wall -Wextra -O2
    MAKE_FLAGS: -j 2

  pkginstall_script:
    - pkg install -y autoconf automake libtool gettext-tools gettext-runtime
  configure_script:
    - autoreconf -sivf
    - ./configure --disable-dependency-tracking CFLAGS="$CFLAGS" || { tail -300 config.log; false; }
  compile_script:
    - make V=1
  test_script:
    - make V=1 check
  install_script:
    - make V=1 install

# Cirrus CI configuration
# https://cirrus-ci.com/github/libexif/libexif

task:
  name: FreeBSD
  freebsd_instance:
    matrix:
      image_family: freebsd-13-0
      image_family: freebsd-12-2
      image_family: freebsd-11-4

  env:
    # Set to 10 instead of 1 to avoid problems when new commits are submitted
    # during a run.
    CIRRUS_CLONE_DEPTH: 10
    CFLAGS: -Wall -Wextra -O2
    MAKE_FLAGS: -j 2

  pkginstall_script:
    - pkg install -y autoconf automake libtool gettext-tools gettext-runtime
  configure_script:
    - autoreconf -sivf
    - ./configure --disable-dependency-tracking CFLAGS="$CFLAGS" || { tail -300 config.log; false; }
  compile_script:
    - make V=1
  test_script:
    - make V=1 check
  install_script:
    - make V=1 install

Switch to the latest stable FreeBSD versions for Cirrus CI builds
Switch to the latest stable FreeBSD versions for Cirrus CI builds
