-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (52 loc) · 1.11 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
language:
- cpp
os:
- linux
dist: trusty
sudo: required
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- build-essential
- cmake
- git
- libgtk2.0-dev
- pkg-config
- python-dev
- python-numpy
- lcov
- libboost-all-dev
- libpoco-dev
install:
- sudo pip install cpp-coveralls
- sudo apt-get update -qq && sudo apt-get install -qq libpoco-dev libboost-all-dev
before_script:
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-5 /usr/bin/g++
- gcc -v
- g++ -v
- sudo ldconfig
- wget http://www.cmake.org/files/v3.6/cmake-3.6.0.tar.gz
- tar xf cmake-3.6.0.tar.gz
- cd cmake-3.6.0
- ./configure
- make
- sudo make install
- cd ..
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=$CXX -DOPTION_BUILD_TESTS=1 -DCMAKE_BUILD_TYPE=Coverage ..
script:
- make -j4
- make hypha_coverage
- cd ..
after_success:
- coveralls --root "." -E ".*/cmake-3.6.0/.*" -E ".*/build/gtest/.*" -E ".*CMakeFiles.*" -E ".*tests/.*.cpp.*"
notifications: