-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
65 lines (59 loc) · 1.9 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
59
60
61
62
63
64
65
language: cpp
matrix:
include:
- name: "gcc 9 Debug "
os: linux
sudo: false
env: COVERAGE=0 CXX_EXE=/usr/bin/g++-9 CC_EXE=/usr/bin/gcc-9 CMAKE_OPTS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DENABLE_TESTING=ON -DBUILD_EXAMPLES=ON -DVALGRIND_CHECKS=ON -DENABLE_LTO=OFF" GCOV=/usr/bin/gcov
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- deadsnakes
packages:
- python3.7
- libx11-dev
- libxrandr-dev
- libudev-dev
- libasio-dev
- g++-9
- lcov
- gcovr
- catch
- valgrind
- name: "gcc 9 Debug (Cov)"
os: linux
sudo: false
env: COVERAGE=1 CXX_EXE=/usr/bin/g++-9 CC_EXE=/usr/bin/gcc-9 CMAKE_OPTS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DENABLE_TESTING=ON -DBUILD_EXAMPLES=ON -DVALGRIND_CHECKS=ON -DENABLE_LTO=OFF -DENABLE_COVERAGE=ON" CODECOV_TOKEN="09845e6b-3f0a-47ad-843b-aa13c58aa4b5" GCOV=/usr/bin/gcov
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libx11-dev
- libxrandr-dev
- libudev-dev
- libasio-dev
- g++-9
- lcov
- gcovr
- catch
- valgrind
install:
- pip install --user conan cmake
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
script:
- $CXX_EXE --version
- which cmake
- cmake --version
- export CXX=$CXX_EXE
- export CC=$CC_EXE
- echo $CXX
- echo $CMAKE_OPTS
- $CXX --version
- mkdir build
- cd build
- cmake $CMAKE_OPTS ..
- VERBOSE=1 cmake --build . -- -j2
- make test
- if [ "${COVERAGE}" = "1" ]; then make alisp_coverage_xml && bash <(curl -s https://codecov.io/bash) -f alisp_coverage_xml.xml -t 09845e6b-3f0a-47ad-843b-aa13c58aa4b5 ; fi