summaryrefslogtreecommitdiff
path: root/.cirrus.yml
blob: aaa3221fdd890aead0948bf667e0ce49cdac2148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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