-
Notifications
You must be signed in to change notification settings - Fork 70
/
.travis.yml
48 lines (39 loc) · 1.61 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
os:
- linux
language:
- cpp
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: "WbMkGWvcdx2yOMlSNyAo9LRL5OCIgO8ksPW77yl70f34kfpk4P1lNKulg0Gh8ONHG1iBmZROBXyG1PKQCx2OqBsi//xGEDnNMq2FFNrj+8Ch1u3yA4n8z0Kl2IlGmHUm79pJ2WPTykMPXW8VBs6aL9vPSnF9TtGHL93g9FC8sY8="
addons:
coverity_scan:
project:
name: "simonhf/sharedhashfile"
description: "Build submitted via Travis CI"
notification_email: [email protected]
# https://www.synopsys.com/blogs/software-security/coverity-and-issues-in-third-party-code/
# only have Coverity examine shf.c
build_command_prepend: "cov-configure --compiler gcc --comptype gcc --template ; make clean ; make release ; rm release-gcc/shf.o release-gcc/test.q.shf.t"
build_command: "make release"
branch_pattern: master
before_install:
- sudo apt-get update
- sudo apt-get install lcov
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
install:
- gem install coveralls-lcov
script:
- make clean ; SHF_DEBUG_MAKE=1 make release && SHF_DEBUG_MAKE=1 make debug && SHF_DEBUG_MAKE=1 make release coverage
after_script:
- which gcc
- gcc -v
- find cov-int -type f
- cat cov-int/build-log.txt
- cat cov-int/scm_log.txt
after_success:
- lcov --compat-libtool --directory release-coverage-gcc --capture --output-file release-coverage-gcc/coverage.info
- coveralls-lcov release-coverage-gcc/coverage.info