-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
82 lines (65 loc) · 2.35 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
dist: trusty
sudo: required
language: c
os:
- linux
- osx
compiler:
- gcc
- clang
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install xorg-dev libglu1-mesa-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install xorg-dev libglu1-mesa-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install build-essential libgtk-3-dev; fi
env:
- TARGET_CPU=amd64 BUILD_CONFIGURATION=Debug BUILD_COVERAGE=FALSE
- TARGET_CPU=amd64 BUILD_CONFIGURATION=Release BUILD_COVERAGE=FALSE
- TARGET_CPU=x86 BUILD_CONFIGURATION=Debug BUILD_COVERAGE=FALSE
- TARGET_CPU=x86 BUILD_CONFIGURATION=Release BUILD_COVERAGE=FALSE
- TARGET_CPU=x86 BUILD_CONFIGURATION=Debug BUILD_COVERAGE=TRUE
matrix:
exclude:
- os: osx
compiler: gcc
- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Debug BUILD_COVERAGE=FALSE
- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Release BUILD_COVERAGE=FALSE
- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Debug BUILD_COVERAGE=TRUE
- compiler: clang
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Debug BUILD_COVERAGE=TRUE
addons:
apt:
packages:
- lcov
sonarcloud:
organization: "irov-github"
script:
# libmovie
- mkdir build_cmake
- pushd build_cmake
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU -DLIBMOVIE_EXAMPLES_BUILD:BOOL=TRUE -DLIBMOVIE_TEST:BOOL=TRUE -DLIBMOVIE_COVERAGE:BOOL=$BUILD_COVERAGE
- cmake --build .
- ctest --output-on-failure
- popd
# moview
- pushd tools/moview
- mkdir build_cmake
- pushd build_cmake
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU
- cmake --build .
- ctest --output-on-failure
- popd
- popd
cache:
directories:
- '$HOME/.sonar/cache'
after_success:
- pushd ${TRAVIS_BUILD_DIR}
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then build-wrapper-linux-x86-64 --out-dir bw-output make all; fi
- lcov --directory src --capture --output-file coverage.info
- lcov --list coverage.info
- bash <(curl -s https://codecov.io/bash)
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sonar-scanner -X; fi
- popd