generated from cpp-best-practices/gui_starter_template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (51 loc) · 1.38 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
language: cpp
install:
# Pip cannot install Conan without these upgrades
- python3 -m pip install --upgrade pip setuptools
# Install Conan and CMake >= 3.15
- python3 -m pip install conan cmake
# Fail if we can't run Conan.
- conan --version
jobs:
include:
- os: osx
compiler: gcc
osx_image: xcode11.2 # includes gcc-9 by default
env:
- GCC_VER="9"
- MATRIX_EVAL="CC=gcc-${GCC_VER} && CXX=g++-${GCC_VER}"
- os: osx
compiler: clang
osx_image: xcode11.2
env:
- MATRIX_EVAL=""
- os: linux
dist: bionic
compiler: gcc
env:
- GCC_VER="9"
- MATRIX_EVAL="CC=gcc-${GCC_VER} && CXX=g++-${GCC_VER}"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# I couldn't get ${GCC_VER} in here successfully
- gcc-9
- g++-9
- doxygen
- python3-pip
after_script:
- bash <(curl -s https://codecov.io/bash) -x /usr/bin/gcov-${GCC_VER}
- os: linux
dist: bionic
compiler: clang
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
addons: { apt: { packages: ['doxygen', 'python3-pip'] } }
before_script:
- eval "${MATRIX_EVAL}"
script:
- cmake -S . -B ./build -D ENABLE_COVERAGE:BOOL=ON ../
- cmake --build ./build -- -j2
- cd build && ctest -j2