1
1
# Control file for the Travis autobuilder
2
- # http://about .travis-ci.org/docs /user/build-configuration/
2
+ # http://docs .travis-ci.com /user/build-configuration/
3
3
4
4
language : c
5
5
compiler :
6
6
- gcc
7
7
- clang
8
+ - cov-build
8
9
9
10
env :
10
11
global :
14
15
# The build command with all of the arguments that you would apply to a manual `cov-build`
15
16
- COVERITY_SCAN_BUILD_COMMAND="make"
16
17
17
- - PROJECT_NAME="ClusterLabs/pacemaker"
18
-
19
18
# Email address for notifications related to this build
20
19
21
20
28
27
29
28
# -- END Coverity Scan ENV
30
29
31
- # http://docs.travis-ci.com/user/build-configuration/#The-Build-Matrix
32
- matrix :
33
- - COVERITY_SCAN=0
34
- - COVERITY_SCAN=1
35
-
36
30
# sudo add-apt-repository ppa:hotot-team
37
31
before_install :
38
- - whoami
39
- - env | sort
40
- - sudo bash -c 'echo "deb http://archive.ubuntu.com/ubuntu/ raring universe" >> /etc/apt/sources.list'
32
+ - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ raring universe"
41
33
- sudo apt-get update -qq
42
34
43
35
install :
@@ -46,20 +38,25 @@ install:
46
38
- sudo apt-get install -qq libqb-dev/raring
47
39
48
40
before_script :
41
+ # Save and restore CC so that ./configure can pass
42
+ - export CC_SAVED=$CC
43
+ - export CC=`echo ${CC} | sed s/cov-build/gcc/`
49
44
- ./autogen.sh
50
45
- ./configure
46
+ - export CC=$CC_SAVED
51
47
52
48
script :
53
- - if test ${COVERITY_SCAN} = 0 ; then make; fi
54
- - if test ${COVERITY_SCAN } = 1 ; then bash travisci_build_coverity_scan.sh; fi
49
+ - if test ${CC} != cov-build ; then make && ./BasicSanity.sh -V ; fi
50
+ - if test ${CC } = cov-build ; then export CC=gcc; bash ./ travisci_build_coverity_scan.sh; fi
55
51
56
52
# after_script:
57
- after_success :
58
- - if test ${COVERITY_SCAN} = 0; then ./BasicSanity.sh -V; fi
53
+ # after_success:
59
54
60
55
after_failure :
61
56
- lsb_release -a
62
57
- sudo cat /etc/apt/sources.list
58
+ - whoami
59
+ - env | sort
63
60
64
61
notifications :
65
62
irc : " irc.freenode.org#pcmk"
0 commit comments