-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (38 loc) · 1.08 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
sudo: required
dist: trusty
language: cpp
compiler: gcc
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90
- g++-4.9 --version
- lcov --version
install:
- gem install coveralls-lcov
before_script:
- cd $TRAVIS_BUILD_DIR
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE:string="Debug" -Dexample:bool=on -Dtests:bool=on ..
# - cmake -Dexamples:bool=on .. # cannot build the GUI example
script:
- cd $TRAVIS_BUILD_DIR
- cd build
- make -j $(nproc)
- cd tests
- ./tests
after_success:
- cd $TRAVIS_BUILD_DIR
- lcov --directory . --no-external --capture --output-file coverage.info
- lcov --remove coverage.info 'tests/*' --output-file coverage.info
- lcov --list coverage.info
- coveralls-lcov --repo-token $COVERALLS_TOKEN coverage.info
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- libboost-system-dev
- libboost-test-dev
- lcov
# - libwxgtk3.0-dev # still not working