forked from smartdevicelink/sdl_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (63 loc) · 1.68 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
language: cpp
dist: trusty
sudo: required
only:
- master
- develop
- \/feature\/.+
- \/fix\/.+
- \/hotfix\/.+
- \/release\/.+
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- libssl-dev
- libbluetooth3
- libbluetooth-dev
- libudev-dev
- libusb-1.0
- cmake
- html2text
- clang-format-3.6
- binutils
before_install:
- sudo apt-get -qq update
- sudo apt-get -q -y install 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
- bash -e tools/infrastructure/check_style.sh
- echo "Number of processing units available ${PROCESSING_UNITS_COUNT}"
- mkdir build && cd build && cmake ../ -DBUILD_TESTS=ON -DENABLE_GCOV=ON && make install -j${PROCESSING_UNITS_COUNT}
- sudo ldconfig
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/bin/lib ; make test
- bash ../tools/infrastructure/show_disabled.sh
- bash -ex ../tools/infrastructure/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=.
- PROCESSING_UNITS_COUNT=$("nproc")
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
notifications:
email: