summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2019-01-16 23:20:58 +0100
committerjvoisin2019-01-16 23:25:30 +0100
commit5a6bdf6836730463b065021713500602b317e2c8 (patch)
tree19a84abbe7d04202734570d1e24477de28686646
parent5f78bda00954c208858c2eb7dd9121f374f308d6 (diff)
Clean up a bit our .travis-ci.yml file
Credit goes to @szepeviktor, this commit is a straight ripoff of https://github.com/nbs-system/snuffleupagus/pull/273 but without the bits that I'm not fond of, so we can move this forward while still being able to bikeshed around the bust the rest of it if we want to.
-rw-r--r--.travis.yml41
1 files changed, 20 insertions, 21 deletions
diff --git a/.travis.yml b/.travis.yml
index b6ba6f8..8c0c309 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,7 +6,7 @@ env:
6matrix: 6matrix:
7 include: 7 include:
8 - env: TARGET="coverity" 8 - env: TARGET="coverity"
9 php: '7.2' 9 php: "7.2"
10 script: echo "Coverity, nothing to do." 10 script: echo "Coverity, nothing to do."
11 after_success: cat /home/travis/build/nbs-system/snuffleupagus/cov-int/scm_log.txt 11 after_success: cat /home/travis/build/nbs-system/snuffleupagus/cov-int/scm_log.txt
12 before_install: echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- 12 before_install: echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
@@ -15,45 +15,44 @@ matrix:
15 project: 15 project:
16 name: "nbs-system/snuffleupagus" 16 name: "nbs-system/snuffleupagus"
17 description: "Build submitted via Travis CI" 17 description: "Build submitted via Travis CI"
18 notification_email: devnull@nbs-system.com 18 notification_email: "devnull@nbs-system.com"
19 build_command_prepend: "cd src; phpize; ./configure --enable-snuffleupagus; cd -" 19 build_command_prepend: "cd src; phpize; ./configure --enable-snuffleupagus; cd -"
20 build_command: "make debug -j2" 20 build_command: "make debug -j2"
21 branch_pattern: master 21 branch_pattern: "master"
22 - env: TARGET="gcc php7.0" CC="gcc" 22 - env: TARGET="gcc php7.0" CC="gcc"
23 php: '7.0' 23 php: "7.0"
24 - env: TARGET="gcc php7.1" CC="gcc" 24 - env: TARGET="gcc php7.1" CC="gcc"
25 php: '7.1' 25 php: "7.1"
26 - env: TARGET="gcc php7.2" CC="gcc" 26 - env: TARGET="gcc php7.2" CC="gcc"
27 before_install: pip install --user cpp-coveralls 27 before_install: pip install --user cpp-coveralls
28 php: '7.2' 28 php: "7.2"
29 - env: TARGET="gcc php7.3" CC="gcc" 29 - env: TARGET="gcc php7.3" CC="gcc"
30 php: '7.3' 30 php: "7.3"
31 - env: TARGET="gcc php nightly" CC="gcc" 31 - env: TARGET="gcc php nightly" CC="gcc"
32 php: nightly 32 php: "nightly"
33 allow_failures: 33 allow_failures:
34 - env: TARGET="gcc php nightly" CC="gcc" 34 - env: TARGET="gcc php nightly" CC="gcc"
35 php: nightly 35 php: "nightly"
36 36
37script: 37script:
38 - 'if [[ ! "${TARGET}" = *"nightly"* ]]; then 38 - if [[ ! "${TARGET}" = *"nightly"* ]]; then pecl install vld-beta ; fi
39 pecl install vld-beta ; 39 - cd src/
40 fi'
41 - cd src
42 - phpize 40 - phpize
43 - ./configure --enable-snuffleupagus --enable-coverage 41 - ./configure --enable-snuffleupagus --enable-coverage
44 - make -j 2 42 - make -j 2
45 - TEST_PHP_ARGS="-q" REPORT_EXIT_STATUS=1 make test 43 - TEST_PHP_ARGS="-q" REPORT_EXIT_STATUS=1 make test
46 44
47after_success: 45after_success:
48 - 'if [ "${TARGET}" = "gcc php7.2" ]; then 46 - |
47 if [ "${TARGET}" = "gcc php7.2" ]; then
49 cd ../ 48 cd ../
50 git clone https://github.com/linux-test-project/lcov.git --depth 1 ; 49 git clone --depth 1 https://github.com/linux-test-project/lcov.git
51 rm -rf ./lcov/examples/ ./lcov/test/ ; 50 rm -rf ./lcov/examples/ ./lcov/test/
52 ./lcov/bin/lcov -c -o ./src/COV.info --rc lcov_branch_coverage=1 --base-directory ./src/ --directory . ; 51 ./lcov/bin/lcov -c -o ./src/COV.info --rc lcov_branch_coverage=1 --base-directory ./src/ --directory .
53 ./lcov/bin/lcov --remove ./src/COV.info "/usr/*" --remove ./src/COV.info "./src/*tweetnacl.c" -o ./src/COV.info --rc lcov_branch_coverage=1 ; 52 ./lcov/bin/lcov --remove ./src/COV.info "/usr/*" --remove ./src/COV.info "./src/*tweetnacl.c" -o ./src/COV.info --rc lcov_branch_coverage=1
54 ./lcov/bin/genhtml -o ./src/COV.html ./src/COV.info --branch-coverage ; 53 ./lcov/bin/genhtml -o ./src/COV.html ./src/COV.info --branch-coverage
55 coveralls --exclude "./src/tweetnacl.c" ; 54 coveralls --exclude "./src/tweetnacl.c"
56 fi' 55 fi
57 56
58after_failure: 57after_failure:
59 - grep -r . ./tests/*.out 58 - grep -r . ./tests/*.out