-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
51 lines (51 loc) · 1.39 KB
/
.travis.yml
File metadata and controls
51 lines (51 loc) · 1.39 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
47
48
49
50
51
dist: xenial
language: cpp
compiler: gcc
required: sudo
env:
global:
- TRAVIS=true
- DEPENDENCY_URL=https://github.com/hexoxide/raspberry-dependency.git
addons:
apt:
packages:
- git
- ant
- lcov
- wget
- htop
- make
- libtool
- clang
- clang-tidy
- doxygen
- graphviz
- automake
- autoconf
- zookeeper
- python-dev
- icu-devtools
- libcppunit-dev
- libzookeeper-mt-dev
before_install:
- git clone $DEPENDENCY_URL depdendency
- cd depdendency
- git checkout O2v2
- git submodule update --init --recursive
- ./install-dependencies.sh
script:
- cd ${TRAVIS_BUILD_DIR}
- if [ ! -d "build" ]; then mkdir build; fi
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TRAVIS=true -DENABLE_CODECOV=true -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
- make -j 2
- cd ${TRAVIS_BUILD_DIR}/build
- doxygen doxygen.cnf | echo > /dev/null
- sudo python ../tests/run-clang-tidy.py -header-filter='.*' -checks='modernize*'
- make coverage
after_success:
- cd ${TRAVIS_BUILD_DIR}/build
- lcov --directory . --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
- lcov --list coverage.info #debug info
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"