forked from aabc/ipt-netflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (51 loc) · 1.25 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
54
55
56
57
# .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.1810
OS_NAME: centos
OS_VERSION: 7.1810
- name: x86_64 CentOS 7.1708
OS_NAME: centos
OS_VERSION: 7.1708
- name: x86_64 CentOS 7.1611
OS_NAME: centos
OS_VERSION: 7.1611
- name: x86_64 CentOS 6.10
OS_NAME: centos
OS_VERSION: 6.10
- name: x86_64 CentOS 6.9
OS_NAME: centos
OS_VERSION: 6.9
- name: x86_64 CentOS 6.8
OS_NAME: centos
OS_VERSION: 6.8
install:
- if [ -z "$OS_NAME" ]; then
sudo m-a prepare;
else
sudo docker pull ${OS_NAME}:${OS_VERSION};
sudo docker build --no-cache --rm --file=travis/Dockerfile.${OS_NAME}-${OS_VERSION} --tag=${OS_NAME}-${OS_VERSION}:test .;
fi
script:
- if [ -z "$OS_NAME" ]; then
./configure && make all && sudo make install;
else
sudo docker run -v $PWD:$PWD -w $PWD ${OS_NAME}-${OS_VERSION}:test;
fi