forked from xmidt-org/parodus2mockTr181
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (38 loc) · 1.39 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
language: c
os:
- linux
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler:
- gcc
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "invalid"
addons:
coverity_scan:
project:
name: "Comcast/parodus2mockTr181"
description: "A mock implementation of TR-181 objects through Parodus"
notification_email: [email protected]
build_command_prepend: "mkdir coverity_build && cd coverity_build && cmake .."
build_command: "make"
branch_pattern: disable_master
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo pip install codecov; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cunit valgrind; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y -qq libcunit1 libcunit1-dev lcov valgrind; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- ; fi
script:
- mkdir build
- cd build
- cmake ..
- make
- make test
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then codecov; fi