• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1env:
2  CIRRUS_CLONE_DEPTH: 3 # The internal git client reads CIRRUS_CLONE_DEPTH.
3  LIBPCAP_GIT: https://github.com/the-tcpdump-group/libpcap.git
4
5freebsd_task:
6  name: freebsd-amd64
7  only_if: $CIRRUS_BRANCH != 'coverity_scan'
8  freebsd_instance:
9    # FreeBSD fails to start with 1 GB. 8 CPUs max concurrency.
10    matrix:
11      - image_family: freebsd-11-4
12        cpu: 2
13        memory: 2G
14      - image_family: freebsd-12-2
15        cpu: 2
16        memory: 2G
17      - image_family: freebsd-13-0
18        # This one is much slower than the others.
19        cpu: 4
20        memory: 4G
21  env:
22    IGNORE_OSVERSION: yes
23    MAKEFLAGS: -j 4
24    MATRIX_CC: clang gcc10
25  script:
26    - pkg install -qy git autoconf gcc10
27    - pkg install -qy bash cmake # for build_matrix.sh and build.sh
28    - pkg install -qy pkgconf # for cmake, replaces pkg-config
29    - echo '$ git clone [...] libpcap.git'
30    - git -C .. clone --depth ${CIRRUS_CLONE_DEPTH} --branch=master --quiet ${LIBPCAP_GIT}
31    - ./build_matrix.sh
32
33linux_task:
34  name: linux-amd64
35  only_if: $CIRRUS_BRANCH != 'coverity_scan'
36  container:
37    # Linux works just fine with 1 GB. 16 CPUs max concurrency.
38    cpu: 4
39    memory: 1G
40    image: ubuntu:20.04
41  env:
42    DEBIAN_FRONTEND: noninteractive
43    MAKEFLAGS: -j 5
44    matrix:
45      - MATRIX_CC: gcc
46      - MATRIX_CC: clang
47  script:
48    - apt-get -qy update
49    - apt-get -qy install git autoconf make cmake clang gcc
50    - apt-get -qy install flex bison libdbus-1-dev libbluetooth-dev libnl-genl-3-dev libibverbs-dev # for libpcap
51    - apt-get -qy install libssl-dev libsmi2-dev libcap-ng-dev libpcap-dev
52    - apt list --installed 'lib*-dev'
53    - echo '$ git clone [...] libpcap.git'
54    - git -C .. clone --depth ${CIRRUS_CLONE_DEPTH} --branch=master --quiet ${LIBPCAP_GIT}
55    - ./build_matrix.sh
56
57macos_task:
58  name: macos-amd64
59  only_if: $CIRRUS_BRANCH != 'coverity_scan'
60  macos_instance:
61    image: big-sur-xcode
62    # "cpu" and "memory" are invalid keywords for macOS tasks now
63  env:
64    MAKEFLAGS: '-j 12'
65  script:
66    - brew update >/dev/null
67    - brew install libsmi | grep -v '%'
68    - echo '$ git clone [...] libpcap.git'
69    - git -C .. clone --depth ${CIRRUS_CLONE_DEPTH} --branch=master --quiet ${LIBPCAP_GIT}
70    - ./build_matrix.sh
71
72coverity_task:
73  name: Coverity Scan
74  only_if: $CIRRUS_BRANCH == 'coverity_scan'
75  container:
76    cpu: 4
77    memory: 2G
78    image: ubuntu:20.04
79  env:
80    DEBIAN_FRONTEND: noninteractive
81    MAKEFLAGS: -j 5
82    COVERITY_SCAN_PROJECT_NAME: $CIRRUS_REPO_FULL_NAME
83    COVERITY_SCAN_TOKEN: ENCRYPTED[1b6f994cabfe74267ce2dce81fd9e49f694e9cfe69fb99f7d1580907bec1266efd7b38df3a47ccab53d5af98636f8e9c]
84    COVERITY_SCAN_BUILD_COMMAND_PREPEND: ./configure
85    COVERITY_SCAN_BUILD_COMMAND: make
86    COVERITY_SCAN_BRANCH_PATTERN: $CIRRUS_BRANCH
87    TRAVIS_BRANCH: $CIRRUS_BRANCH
88    TRAVIS_PULL_REQUEST: ${CIRRUS_BASE_BRANCH:+true}
89  script:
90    - apt-get -qy update
91    - apt-get -qy install autoconf make gcc
92    - apt-get -qy install libssl-dev libsmi2-dev libcap-ng-dev libpcap-dev
93    - apt-get -qy install git curl wget ruby rubygems ruby-json # for the coverity script
94    - apt list --installed 'lib*-dev'
95    - ./.travis-coverity-scan-build.sh
96