-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
39 lines (39 loc) · 1.01 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
language: cpp
compiler:
- gcc
os: linux
dist: trusty
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y valgrind
- sudo wget https://github.com/google/googletest/archive/release-1.7.0.tar.gz
- sudo tar xf release-1.7.0.tar.gz
- cd googletest-release-1.7.0
- sudo cmake -DBUILD_SHARED_LIBS=ON .
- sudo make -j8
- sudo cp -a include/gtest /usr/include
- sudo cp -a libgtest_main.so libgtest.so /usr/lib/
- which valgrind
- cd "${TRAVIS_BUILD_DIR}"
- ls -l
script:
- cd ut
- sudo wget https://raw.githubusercontent.com/fkromer/catch_cmake_coverage/master/cmake/Modules/CodeCoverage.cmake
- cmake -DBUILD_TESTS=ON .
- make -j8
- make -j8 xpjson_coverage
- ctest
- valgrind ./xpjson_ut
branches:
only:
- master
addons:
apt:
packages:
- cmake
- lcov
after_success:
# Creating report
- cd ${TRAVIS_BUILD_DIR}
# Uploading report to CodeCov
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"