-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
84 lines (77 loc) · 2.05 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
71
72
73
74
75
76
77
78
79
80
81
82
83
# Enable C++ support
sudo: required
dist: trusty
language: cpp
addons:
apt:
packages: &base_build
- libgtest-dev
- nettle-dev
- rpm
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- *base_build
- g++-5
env: COMPILER=g++-5
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- *base_build
- g++-6
env: COMPILER=g++-6
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- *base_build
- clang-3.6
env: COMPILER=clang++-3.6
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- *base_build
- clang-3.7
env: COMPILER=clang++-3.7
install:
# Install radcli (only available as a package in xenial)
- |
RADCLI_URL="https://github.com/radcli/radcli/releases/download/1.2.9/radcli-1.2.9.tar.gz"
mkdir -p $HOME/radcli && travis_retry wget --no-check-certificate --quiet -O - ${RADCLI_URL} | tar --strip-components=1 -xz -C $HOME/radcli
pushd $HOME/radcli
./configure --prefix=/usr && make && sudo make install
popd
# Install newer CMake
- |
CMAKE_URL="https://cmake.org/files/v3.10/cmake-3.10.2-Linux-x86_64.tar.gz"
mkdir -p $HOME/cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C $HOME/cmake
export PATH=$HOME/cmake/bin:$PATH
- cmake --version
# Install GoogleTest
- |
mkdir -p $HOME/tmp/gtest
pushd $HOME/tmp/gtest
cmake -DCMAKE_CXX_COMPILER=$COMPILER /usr/src/gtest
make
sudo cp libgtest* /usr/lib/
popd
# Build steps
script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=$COMPILER .. && make && make test && make package