-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
55 lines (49 loc) · 1.58 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
language: cpp
sudo: required
env:
global:
# Workaround for https://github.com/travis-ci/travis-ci/issues/4681
matrix:
- TRAVIS_EMPTY_JOB_WORKAROUND=true
matrix:
exclude:
- env: TRAVIS_EMPTY_JOB_WORKAROUND=true
include:
- os: linux
dist: bionic
env:
compiler: gcc
addons:
apt:
update: true
packages:
- cmake
- lcov
before_install:
# C++17
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
# C++17
- sudo apt-get install -qq g++-8 libboost-all-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
- os: osx
osx_image: xcode11.5
env:
before_install:
- brew install lcov
after_success:
# Creating report
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
- lcov --list coverage.info #debug info
# Uploading report to CodeCov
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
- os: windows
before_install:
- chocolatey search boost
allow_failures:
- os: windows
script:
- cmake -DCMAKE_BUILD_TYPE=Debug && cmake --build . && ctest -C Debug --output-on-failure && mkdir ${HOME}/test-install && cmake --install . --prefix ${HOME}/test-install