-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
56 lines (46 loc) · 1.51 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
language: cpp
dist: trusty
sudo: required
# branches:
# - /master/
# except:
# - /dev-appveyor.*/
common_sources: &all_sources
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
matrix:
include:
# normal build
- os: linux
compiler: clang
addons:
apt:
sources: *all_sources
packages: ['clang-6.0', 'libstdc++-6-dev']
env: COMPILER='clang++-6.0'
# examples, coverage builds
- os: linux
compiler: clang
addons:
apt:
sources: *all_sources
packages: ['clang-6.0', 'libstdc++-6-dev', 'lcov']
env: COMPILER='clang++-6.0'
before_install:
- sudo apt-get -y install libxkbcommon-dev libxrandr-dev libx11-xcb-dev
- DEPS_DIR="${TRAVIS_BUILD_DIR}/.local"
- pip install --user cget
- export CGET_PREFIX=${DEPS_DIR}
- export CMAKE_PREFIX_PATH="${DEPS_DIR}:${CMAKE_PREFIX_PATH}"
- bash ./config/install_dependencies.sh
before_script:
- export CXX=${COMPILER}
- cd ${TRAVIS_BUILD_DIR}
# Use Debug builds for running Valgrind and building examples
# - cmake -H. -BBuild-Debug -DCMAKE_BUILD_TYPE=Debug -Wdev -DUSE_CPP14=${CPP14} -DCATCH_USE_VALGRIND=${VALGRIND} -DCATCH_BUILD_EXAMPLES=${EXAMPLES} -DCATCH_ENABLE_COVERAGE=${COVERAGE}
# Don't bother with release build for coverage build
# - cmake -H. -BBuild-Release -DCMAKE_BUILD_TYPE=Release -Wdev -DUSE_CPP14=${CPP14}
script:
- cmake -H. -Bbuild-release -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${CGET_PREFIX}"
- cd build-release
- cmake --build .