Codebase list iptables-netflow / HEAD .travis.yml
HEAD

Tree @HEAD (Download .tar.gz)

.travis.yml @HEADraw · history · blame

# .travis.yml for ipt-netflow

language: c
dist: xenial
services:
  - docker

addons:
  apt:
    update: true
    packages:
      - pkg-config
      - module-assistant
      - iptables-dev
      - snmpd
      - libsnmp-dev

matrix:
  include:
    - name: x86_64 Ubuntu 16.04.5 LTS Xenial
      os: linux
    - name: ppc64le Ubuntu 16.04.4 LTS Xenial
      os: linux-ppc64le
    - name: x86_64 CentOS 7.6.1810
      env: OS_NAME=centos OS_VERSION=7.6.1810
    - name: x86_64 CentOS 7.4.1708
      env: OS_NAME=centos OS_VERSION=7.4.1708
    - name: x86_64 CentOS 7.3.1611
      env: OS_NAME=centos OS_VERSION=7.3.1611
    - name: x86_64 CentOS 6.10
      env: OS_NAME=centos OS_VERSION=6.10
    - name: x86_64 CentOS 6.9
      env: OS_NAME=centos OS_VERSION=6.9
    - name: x86_64 CentOS 6.8
      env: OS_NAME=centos OS_VERSION=6.8


install:
  - if [ -z "$OS_NAME" ]; then
      ( set -x; sudo m-a prepare );
    else
      ( set -x;
        sudo docker pull ${OS_NAME}:${OS_VERSION};
        sudo docker build --no-cache --rm --file=travis/Dockerfile.${OS_NAME} --build-arg=OS_VERSION=${OS_VERSION} --tag=${OS_NAME}-${OS_VERSION}:test .;
      );
    fi

script:
  - if [ -z "$OS_NAME" ]; then
      ( set -x; ./configure && make all && sudo make install );
    else
      ( set -x; sudo docker run -v $PWD:$PWD -w $PWD ${OS_NAME}-${OS_VERSION}:test );
    fi