-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
32 lines (28 loc) · 1.07 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
language: cpp
sudo: false
matrix:
include:
- os: linux
compiler: gcc-5
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'boost-latest']
packages: ['g++-5', 'libboost-iostreams1.58-dev']
env: [CC_COMPILER=gcc-5, CXX_COMPILER=g++-5, BUILD_testsuite=ON, TEST_COMMAND=./testsuite]
- os: linux
compiler: clang-3.9
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.9', 'boost-latest']
packages: ['g++-5', 'clang-3.9', 'libboost-iostreams1.58-dev']
env: [CC_COMPILER=clang-3.9, CXX_COMPILER=clang++-3.9, BUILD_testsuite=ON, TEST_COMMAND=./testsuite]
before_script:
- wget --no-check-certificate https://cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.sh
- sh cmake-3.5.2-Linux-x86_64.sh --exclude-subdir --prefix=$HOME
script:
- mkdir -p build && cd build
- CC=$CC_COMPILER CXX=$CXX_COMPILER cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_testsuite=$BUILD_testsuite -DPORTABLE_RANDOMNESS=OFF
- make
- $TEST_COMMAND
- cd ..
- python3 ./testsuite/scan_tests.py