forked from oddkiva/sara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (46 loc) · 1.23 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
language: cpp
sudo: required
dist: trusty
cache:
bundler: true
directories:
- $HOME/ffmpeg
addons:
apt:
sources:
- ubuntu-sdk-team
packages:
- qtbase5-dev
- lcov
- libboost-test-dev
- libqt5opengl5
- libqt5opengl5-dev
- yasm
compiler:
- gcc
before_script:
# Fake X server
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
# Build and install third-party locally.
- ./scripts/travis-build-and-install-third-party.sh
- bundle install
script:
# Build libraries.
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DSARA_BUILD_TESTS=ON -DSARA_BUILD_SAMPLES=ON -DSARA_BUILD_VIDEOIO=ON -DSARA_FFMPEG_DIR=$HOME/ffmpeg ..
- make -j4
# Run tests.
- ctest --output-on-failure
# Make package.
- make package
after_success:
- cd ..
- lcov --compat-libtool --directory build --base-directory=cpp/src --capture --output-file=coverage.info
- lcov --remove coverage.info 'usr/*' --output-file coverage.info
- lcov --remove coverage.info 'cpp/third-party/*' --output-file coverage.info
- lcov --remove coverage.info 'cpp/test/*' --output-file coverage.info
- lcov --remove coverage.info 'build/moc_*' --output-file coverage.info
- coveralls-lcov coverage.info