-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 1.25 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
os: linux
dist: focal
sudo: true
language:
- cpp
addons:
apt:
packages:
- libgtest-dev
- cmake
- lcov
install:
- pip install --user cpp-coveralls
script:
- echo "Installing Google Test Framework"
- pushd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp ./lib/libgtest*.a /usr/lib
- popd
- echo "Building & Running Sample Applications"
- mkdir build && cd build
- cmake ../ -DBUILD_EXAMPLES=ON
- cmake --build .
- examples/DDSketch_Examples
- cd .. && rm -rf build
- echo "Running Unit Tests and checking coverage"
- mkdir build && cd build
- cmake ../ -DRUN_COVERAGE=ON
- cmake --build .
- tests/DDSketch_Unit_Tests
- cd ..
- echo "Done"
after_success:
# Collect coverage and push to coveralls.info
# Ignore third party source code and tests
- if [ "${CC}" = "gcc" ]; then
find build/
\(
-name '*.gcda' -or
-name '*.gcno' -or
-name 'DDSketch_Unit_Tests'
\)
-exec cp {} tests/ \; ;
rm -rf build;
cd tests;
coveralls
--root ../
--build-root ./
--exclude lib
--gcov-options '\--long-file-names --preserve-paths';
fi
notifications:
email: false