forked from pure-data/pure-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 2.95 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
## Travis-CI configuration for Pure Data
#
# this automatically builds Pd whenever a new commit is pushed to github...
# https://travis-ci.org/pure-data/pure-data
# it also supports coverity.scan static code analysis (whenever something is
# pushed to either 'master' or the 'coverity-scan' branch.
# note that there is a rate-limit for code-analysis.
# https://scan.coverity.com/projects/pure-data-pure-data
language: c
env:
global:
# COVERITY envs:
## the following is an encrypted authentication token or coverity.scan
- secure: "ifC0UBN+k/lpPL3+amsz8lBNpbmDxi/XGRMIXLpRlNq67cSxOK3pF67HSvM1rFtVS5q9pN+MF2Cfq0jEoeqOJht9SiP+gvb1YlKZITNz4XiNgx2oxKnQLxJhc/EH1bd5hkJ9rpgoOAJGGgDGiI/GFsiwb6wrGQ52i3GPNw3QDPMHjDL8lMPCJQ+GP444j+maXQscWsKqLLa0Eeov0hd60T9fYwvDEGzA95X/UcMW9LFEqq9gW1neiv82ga1y7S/pR8ovqasER+wjFBNdfYh9JekRZv7mRjXK45gRWFg3vArEprfbsgQhPNXsXqXP/HbzMV/cpF0Atn+cyd+GxVRn5PdqiJvn73H9612QQQfXc195JcJXFN79ZeoIYxZI9gZt8emHZE1V90AoTthqCDv0lC/qKwH1SpqqrJ07gGh08ZiUTpN5xBerMzWBdhaUpAGRWeC9xO2xDXz3QKmDb8onWpuoQSCfvM8L2uw2UZnB7Hi93wwyb3nb1kw4CW+3HbgdWIOYtNFc8NAnqbk5BHQLZwCYHOAKPZc6Wae1y2sz5Lm/cOHBdN9msA1jTp5A2K/NjBIhOB6k//uTeSZvkwAWeIcxuNG/xxyk1a76sXGN3WNRSiWeR4jAuNt0k6j0QrEI03Vmv7u12MRiwGBI5WDMhvaMHzltCSmSz2tGsfIEfm8="
## a forwarding address to receive notifications of new defects
- COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]"
## which branches are submitted to coverity scan (all)
- COVERITY_SCAN_BRANCH_PATTERN=".*"
- COVERITY_SCAN_BUILD_COMMAND="make"
## build-matrix that builds on both gcc and clang.
## coverity.scan is only triggered in one of the nodes (namely gcc)
matrix:
include:
- os: linux
compiler: gcc
env:
# enable coverity.scan
- COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
- os: linux
compiler: clang
- os: osx
addons:
apt:
packages:
- libasound2-dev
- libjack-dev
before_script:
## fix glibtool on OSX...
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cleanup; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew uninstall --ignore-dependencies libtool; brew install libtool; fi
## basic autoconf setup
- ./autogen.sh
- ./configure --enable-jack
## check whether we want to use coverity.scan and haven't met the quota yet.
## if so, build and submit. (else we skip to the ordinary build)
# (implement Coverity Scan with before_script instead of addons.coverity_scan
# to work around too-early quota check by the coverity_scan addon)
# we don't want to run coverity-scan for PRs (to not hit the quota too often)
- if [[ -n $COVERITY_SCAN_PROJECT_NAME ]] && test "x${TRAVIS_PULL_REQUEST}" = "xfalse" ; then curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash || true ; fi
- if [[ -e cov-int/scm_log.txt ]] ; then cat cov-int/scm_log.txt; else echo "no coverity log found"; fi
script:
## the actual build
- make distcheck