Skip to content

Commit 3f3b174

Browse files
committed
Travis CI : enable automatic Coverity scans
1 parent 0a70eb8 commit 3f3b174

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,27 @@ matrix:
143143
- CXX=clang
144144
- CXXFLAGS=-lstdc++
145145

146+
env:
147+
global:
148+
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
149+
# via the "travis encrypt" command using the project repo's public key
150+
- secure: "Qm4d8NEDPBtYZCYav46uPEvDCtaRsjLXlkVS+C+WCJAPcwXCGkrr96wEi7RWcq2xD86QCh0XiqaPT+xdUmlohOYIovRhaaBmZ1lwIJ4GsG/ZR6xoFr3DYsZ3o4GyXk2vNXNxEl82AC+Xs6e6gkLOV9XRkBcjpVIvoIXgNlKWeGY="
146151

147152
before_install:
153+
# coveralls test coverage:
148154
- if [[ "$CXX" == "g++" ]]; then pip install --user cpp-coveralls ; fi
155+
# coverity static analysis:
156+
- if [[ "$CXX" == "g++" ]]; 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
157+
158+
addons:
159+
coverity_scan:
160+
project:
161+
name: "SRombauts/SQLiteCpp"
162+
description: "Build submitted via Travis CI"
163+
notification_email: sebastien.rombauts@gmail.com
164+
build_command_prepend: "cmake ."
165+
build_command: "make -j 8"
166+
branch_pattern: master
149167

150168
# scripts to run before build
151169
before_script:

0 commit comments

Comments
 (0)