forked from RaftLib/RaftLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (56 loc) · 1.35 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
58
59
60
61
62
63
64
65
66
67
68
69
70
## container build, no sudo
sudo: false
language: cpp
compiler:
- gcc
- clang
os:
- linux
cache:
apt:
ccache:
directories:
env:
global:
- GCC_VERSION=5
- CXXFLAGS=-std=c++14
- CFLAGS=-std=c99
branches:
only:
- master
before_install:
- if [ ${CC} != "clang" ]; then
export CC=/usr/bin/gcc-${GCC_VERSION} CXX=/usr/bin/g++-${GCC_VERSION};
C=gcc;
fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# ensure these match GCC_VERSION
- gcc-5
- g++-5
- binutils
- gawk
- build-essential
- wget
- xz-utils
- libtool
- libnuma-dev
before_script:
- wget --no-check-certificate https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.tar.gz
- tar -zxf cmake-3.5.0-Linux-x86_64.tar.gz
- export PATH=$PWD/cmake-3.5.0-Linux-x86_64/bin/:$PATH
- wget --no-check-certificate http://llvm.org/releases/3.7.1/clang+llvm-3.7.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz;
- tar -xf clang+llvm-3.7.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz
- export PATH=$PWD/clang+llvm-3.7.1-x86_64-linux-gnu-ubuntu-14.04/bin:$PATH
- echo $LANG
- echo $LC_ALL
- mkdir build
- cd build
- cmake ..
script:
- ${CC} --version ; ${CXX} --version; cmake --version
- env
- make -j 4 && make test