-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
52 lines (45 loc) · 1.72 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
sudo: required
dist: trusty
language: cpp
os:
- linux
compiler:
- gcc
branches:
only:
- master
before_install:
# update to gcc5 with c++11/14 support
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
# install latest CMake 3.5.0
- wget --no-check-certificate https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.tar.gz
&& tar -xzf cmake-3.5.0-Linux-x86_64.tar.gz
&& sudo cp -fR cmake-3.5.0-Linux-x86_64/* /usr
# install project dependencies
- sudo apt-get install -qq gcc-5 g++-5 libboost1.55-all-dev libopencv-dev git
qt5-qmake qtbase5-dev qt5-default qttools5-dev libxt-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 90
# install VTK from source, since there exists no release version
- wget --no-check-certificate http://www.vtk.org/files/release/7.0/VTK-7.0.0.tar.gz
&& tar -xzf VTK-7.0.0.tar.gz && cd VTK-7.0.0/ && mkdir build && cd build
- cmake -DVTK_QT_VERSION:STRING=5 -DQT_QMAKE_EXECUTABLE:PATH=$(which qmake) -DVTK_Group_Qt:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON ..
- make
- cd ${TRAVIS_BUILD_DIR}
# install latest LCOV
- wget --no-check-certificate http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
- tar -xf lcov_1.11.orig.tar.gz
- sudo make -C lcov-1.11/ install
- gem install coveralls-lcov
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_CODE_COVERAGE=ON -DCMAKE_PREFIX_PATH=${TRAVIS_BUILD_DIR}/VTK-7.0.0/build/ ..
script:
- make
- make tests
- make restore-coverage
after_success:
- coveralls-lcov --repo-token MItIhmcZO4ebzPTUdTYlEbJXSK43eCGxM coverage.info.cleaned