forked from SimonKagstrom/kcov
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (35 loc) · 1.45 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
# Build matrix / environment variable are explained on:
# http://about.travis-ci.org/docs/user/build-configuration/
# This file can be validated on:
# http://lint.travis-ci.org/
sudo: required
dist: trusty
before_install: make -f travis/Makefile prepare_environment
os:
- linux
- osx
language: cpp
compiler:
- gcc
- clang
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: "WG/iday4nudNJ9acP/gjjuXzI0Jw0MN0zP9JA3WueMvMV0UrVRnBKM+papB06XiB4Gyiaoy92pfOGzmby0ciMAvydBn2DyuGZhM1nXuEIbkQqfP3AR3z6nCZHY27NAhVnpnEAyb56FwD353JMVZj34cnRmcjgKArMM3Y8W66Zls="
# This, and before_script, is taken from from https://github.com/umlaeute/Gem
- COVERITY_SCAN_BRANCH_PATTERN="master"
- COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]"
- COVERITY_SCAN_BUILD_COMMAND_PREPEND="mkdir -p coverity-build && cd coverity-build && cmake .. && cd .."
- COVERITY_SCAN_BUILD_COMMAND="make -C coverity-build"
- COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
before_script:
- mkdir -p coverity-build && cd coverity-build && cmake .. && cd ..
- if [[ "x${CC}" = "xclang" ]] ; then curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash || true ; fi
script: make -f travis/Makefile run-tests
notifications:
recipients:
email:
on_success: change
on_failure: always