summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: a40bb40e8e97c8451085091e5d04482e69d807b5 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: c

dist: focal
virt: lxd
group: edge

script: make -j$TRAVIS_NUMCORES distcheck

addons:
  apt:
    packages: &packages
      - acl
      - libacl1-dev
      - attr
      - libattr1-dev
      - libcap2-bin
      - libcap-dev

jobs:
  include:
    - os: linux
      arch: amd64
      env: &linux_env
        - TMPDIR=/var/ramfs
      addons:
        apt:
          packages:
            - *packages
            - gcc-multilib
            - libcap2:i386
            - libacl1:i386
            - libattr1:i386
      before_script:
        # Ubuntu doesn't let you install the -dev packages for both amd64 and
        # i386 at once, so we make our own symlinks to fix -m32 -lacl -lcap
        - sudo ln -s libacl.so.1 /lib/i386-linux-gnu/libacl.so
        - sudo ln -s libattr.so.1 /lib/i386-linux-gnu/libattr.so
        - sudo ln -s libcap.so.2 /lib/i386-linux-gnu/libcap.so

    - os: linux
      arch: ppc64le
      env: *linux_env

    - os: linux
      arch: arm64-graviton2
      env: *linux_env

    - os: osx

    - os: freebsd
      before_script:
        - sudo mount -t fdescfs fdescfs /dev/fd
        - sudo ln -s ../usr/local/bin/bash /bin/bash
      script: gmake -j2 distcheck