forked from aabc/ipt-netflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.33 KB
/
.travis.yml
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
# .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