-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
53 lines (44 loc) · 1.21 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
language: cpp
os: linux
dist: jammy
sudo: false
branches:
only:
- main
- develop
matrix:
include:
- compiler: gcc
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- compiler: clang
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
before_install:
- eval "${MATRIX_EVAL}"
- pip install --user cpp-coveralls
install:
############################################################################
# All the dependencies are installed in ${TRAVIS_BUILD_DIR}/deps/
############################################################################
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
before_script:
- sudo apt-get update -qq
- sudo apt-get install libboost-thread-dev libboost-system-dev libboost-test-dev
- cd ${TRAVIS_BUILD_DIR}
script:
- mkdir _builds
- cd _builds
- cmake -DVIA_HTTPLIB_UNIT_TESTS=ON -DVIA_HTTPLIB_COVERAGE=ON ..
- make
- ./via-httplib_test
after_success:
- cd ${TRAVIS_BUILD_DIR}
- if [ "$CXX" == "g++" ]; then coveralls --root . -e build/CMakeFiles -E "test_*.o" --gcov-options '\-lp'; fi
notifications:
email:
recipients:
on_success: change
on_failure: always