summaryrefslogtreecommitdiff
path: root/.cirrus.yml
blob: a7ae793bc4e556249f1dd8ec2b561867d984a800 (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
32
33
34
freebsd_build_task:

  freebsd_instance:
    matrix:
      image_family: freebsd-12-2-snap
      image_family: freebsd-11-4-snap
    cpu: 4
    memory: 4G

  env:
    DEPENDENCIES: automake libtool gmake gcc wget openssl python3
    PY_DEPS:      sphinx
    matrix:
      COMPILER: gcc
      COMPILER: clang

  prepare_script:
    - sysctl -w kern.coredump=0
    - pkg update -f
    - pkg install -y ${DEPENDENCIES}
        $(pkg search -xq "^py3[0-9]+-(${PY_DEPS})-[0-9]+" | xargs)

  configure_script:
    - ./boot.sh
    - ./configure CC=${COMPILER} CFLAGS="-g -O2 -Wall"
                  MAKE=gmake --enable-Werror
                  || { cat config.log; exit 1; }

  build_script:
    - gmake -j8

  check_script:
    - gmake -j8 check TESTSUITEFLAGS=-j8 RECHECK=yes
                || { cat ./tests/testsuite.log; exit 1; }