-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
46 lines (39 loc) · 1.1 KB
/
.travis.yml
File metadata and controls
46 lines (39 loc) · 1.1 KB
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
# This file originates from the work of Mateusz Pusz (https://github.com/mpusz/opt) where is licensed under MIT License.
language: c++
sudo: false
addons:
apt:
packages:
- g++-7
sources: &sources
- ubuntu-toolchain-r-test
matrix:
include:
- os: linux
env: BUILD_TYPE=Debug UNIT_TESTS=ON PERF_TESTS=OFF CODECOV=ON
compiler: g++-7
- os: linux
env: BUILD_TYPE=Release UNIT_TESTS=ON PERF_TESTS=ON CODECOV=OFF
compiler: g++-7
before_script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir _build && cd _build && cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCODE_COVERAGE=${CODECOV} ..
script:
- cmake --build .
- |
if [[ "${UNIT_TESTS}" == "ON" ]]; then
test/stringbuilder.c++17.test
test/stringbuilder.c++14.test
test/stringbuilder.c++11.test
fi
- |
if [[ "${PERF_TESTS}" == "ON" ]]; then
test/stringbuilder.c++17.benchmark
test/stringbuilder.c++14.benchmark
test/stringbuilder.c++11.benchmark
fi
after_success:
- |
if [[ "${CODECOV}" == "ON" ]]; then
bash <(curl -s https://codecov.io/bash) -x gcov-6
fi