1b8bc0d8aSopenharmony_ci# Cirrus CI configuration
2b8bc0d8aSopenharmony_ci# https://cirrus-ci.com/github/libexif/libexif
3b8bc0d8aSopenharmony_ci
4b8bc0d8aSopenharmony_citask:
5b8bc0d8aSopenharmony_ci  name: FreeBSD
6b8bc0d8aSopenharmony_ci  freebsd_instance:
7b8bc0d8aSopenharmony_ci    matrix:
8b8bc0d8aSopenharmony_ci      image_family: freebsd-13-0
9b8bc0d8aSopenharmony_ci      image_family: freebsd-12-2
10b8bc0d8aSopenharmony_ci      image_family: freebsd-11-4
11b8bc0d8aSopenharmony_ci
12b8bc0d8aSopenharmony_ci  env:
13b8bc0d8aSopenharmony_ci    # Set to 10 instead of 1 to avoid problems when new commits are submitted
14b8bc0d8aSopenharmony_ci    # during a run.
15b8bc0d8aSopenharmony_ci    CIRRUS_CLONE_DEPTH: 10
16b8bc0d8aSopenharmony_ci    CFLAGS: -Wall -Wextra -O2
17b8bc0d8aSopenharmony_ci    MAKE_FLAGS: -j 2
18b8bc0d8aSopenharmony_ci
19b8bc0d8aSopenharmony_ci  pkginstall_script:
20b8bc0d8aSopenharmony_ci    - pkg install -y autoconf automake libtool gettext-tools gettext-runtime
21b8bc0d8aSopenharmony_ci  configure_script:
22b8bc0d8aSopenharmony_ci    - autoreconf -sivf
23b8bc0d8aSopenharmony_ci    - ./configure --disable-dependency-tracking CFLAGS="$CFLAGS" || { tail -300 config.log; false; }
24b8bc0d8aSopenharmony_ci  compile_script:
25b8bc0d8aSopenharmony_ci    - make V=1
26b8bc0d8aSopenharmony_ci  test_script:
27b8bc0d8aSopenharmony_ci    - make V=1 check
28b8bc0d8aSopenharmony_ci  install_script:
29b8bc0d8aSopenharmony_ci    - make V=1 install
30