-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (42 loc) · 1.74 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
cache: ccache
matrix:
include:
- os: linux
language: cpp
env:
- MATRIX_EVAL="export CXX=g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- os: linux
language: cpp
env:
- MATRIX_EVAL="export CXX=clang++-4.0"
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
- ubuntu-toolchain-r-test
packages:
- clang-4.0
- g++-5
- os: osx
language: cpp
before_install:
- test -n $CXX && unset CXX
- eval "${MATRIX_EVAL}"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install --user flask httpbin cpp-coveralls; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install --user flask httpbin; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python -m httpbin.core --port 8000; fi &
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 -m httpbin.core --port 8000; fi &
- mkdir build && cd build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake .. -DBeastQuest_BUILD_DEPS=ON -DBeastQuest_BUILD_TESTS=ON -DBeastQuest_LOCAL_HTTPBIN=ON -DBeastQuest_TEST_COVERAGE=ON; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake .. -DBeastQuest_BUILD_DEPS=ON -DBeastQuest_BUILD_TESTS=ON -DBeastQuest_LOCAL_HTTPBIN=ON; fi
- make -j2
- ctest --output-on-failure
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then coveralls --verbose -i 'src' -i 'include' --root "../" --gcov-options '\-lp' --gcov 'gcov-5'; fi