-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (54 loc) · 1.59 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
sudo: require
language: cpp
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- gcc-6
- cmake
- libsdl2-dev
env:
- MATRIX_CC=gcc-6 MATRIX_CXX=g++-6
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- g++-6 # required for updated STL
- clang-4.0
- cmake
- libsdl2-dev
- llvm
env:
- MATRIX_CC=clang-4.0 MATRIX_CXX=clang++-4.0
before_install:
- export CC=${MATRIX_CC}
- export CXX=${MATRIX_CXX}
- $CC -v
- $CXX -v
install:
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.13.orig.tar.gz
- tar xf lcov_1.13.orig.tar.gz
- sudo make -C lcov-1.13/ install
- sudo pip install codecov
- wget -O "boost_1_64_0.tar.gz" "http://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.gz/download"
- tar xzf "boost_1_64_0.tar.gz"
- cd "boost_1_64_0"
- ./bootstrap.sh --with-libraries=program_options,filesystem,system
- sudo ./b2 link=shared threading=multi variant=release install > boost.compile.log
- cd ..
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_WINDOW_ALWAYS_ON_TOP=no -DWITH_COVERAGE=yes -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX ..
script:
- make mlogo_test_coverage
after_success:
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"