-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
52 lines (48 loc) · 1.26 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
---
dist: xenial
sudo: false
language: cpp
os:
- linux
env:
matrix:
- BUILD=Debug MYCC=gcc-4.9 MYCXX=g++-4.9
- BUILD=Release MYCC=gcc-4.9 MYCXX=g++-4.9
- BUILD=Debug MYCC=gcc-7 MYCXX=g++-7
- BUILD=Release MYCC=gcc-7 MYCXX=g++-7
- BUILD=Debug MYCC=gcc-8 MYCXX=g++-8
- BUILD=Release MYCC=gcc-8 MYCXX=g++-8
- BUILD=Debug MYCC=clang-5.0 MYCXX=clang++-5.0
- BUILD=Release MYCC=clang-5.0 MYCXX=clang++-5.0
- BUILD=Debug MYCC=clang-6.0 MYCXX=clang++-6.0
- BUILD=Release MYCC=clang-6.0 MYCXX=clang++-6.0
- BUILD=Debug MYCC=clang-7 MYCXX=clang++-7
- BUILD=Release MYCC=clang-7 MYCXX=clang++-7
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-6.0
- llvm-toolchain-xenial-7
packages:
- clang-5.0
- clang-6.0
- clang-7
- cmake
- g++-4.9
- g++-7
- g++-8
- libcurl4-openssl-dev
- libmicrohttpd-dev
- libncurses5-dev
- libpcap-dev
script:
- |
cd $TRAVIS_BUILD_DIR
rm -rf build
mkdir build
cd build
cmake -DCMAKE_C_COMPILER=$MYCC -DCMAKE_CXX_COMPILER=$MYCXX \
-DCMAKE_BUILD_TYPE=$BUILD -DCMAKE_INSTALL_PREFIX:PATH=/tmp ..
make