blob: aaec6c106ab11efe4c64dd6a3ba7a05c312de7fd (
plain)
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
|
language: cpp
dist: trusty
sudo: required
only:
- master
- develop
- \/feature\/.+
- \/fix\/.+
- \/hotfix\/.+
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- libssl-dev
- libbluetooth3
- libbluetooth-dev
- libudev-dev
- cmake
- html2text
before_install:
- sudo apt-get -qq update
- sudo apt-get -q -y install libavahi-client-dev bluez-tools sqlite3 libsqlite3-dev automake1.11
- wget http://archive.ubuntu.com/ubuntu/pool/main/l/lcov/lcov_1.11-3_all.deb
- sudo dpkg -i lcov_1.11-3_all.deb
script:
- sudo ln -sf /usr/bin/gcov-4.9 /usr/bin/gcov
- mkdir build && cd build && cmake ../ -DBUILD_TESTS=ON -DENABLE_GCOV=ON && make install
- sudo ldconfig
- make test
- bash -ex ../tools/Utils/collect_coverage.sh ./
env:
global:
- LC_CTYPE=en_US.UTF-8
- CTEST_OUTPUT_ON_FAILURE=TRUE
- CMAKE_CXX_COMPILER=g++-4.9
- CMAKE_C_COMPILER=gcc-4.9
- LD_LIBRARY_PATH=.
after_success:
- pwd ; bash <(curl -s https://codecov.io/bash) -f ./coverage/coverage.info || echo "Codecov did not collect coverage reports"
deploy:
provider: releases
api-key: "uw8e4USTAS6c9LFhRMYOvw"
file:
- "coverage_report.tar.gz"
skip_cleanup: true
on:
tags: true
|