This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
65 lines (60 loc) · 2.85 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
61
62
63
64
65
language: php
env:
- secure: "fjx/arfcdoqWUIzlQXzQdW9gqXRG7Vpo8dTwJip0uJH8oFeTfYhw1V9EMS4JtKVGwQo3vaagehMflVr7swaoe9Nf4YoCjaEq8x6ZMJH3bLHNgtigfS03Uqop9FI/a/Jau/BL7ibIEkZRNfEIx8z+NyfY4bAeK35W/Ru5k2BHyp1GLKwBpizHdJsshG/ukM+4W8PY9BAeXVavqxQRywseQEsqmGruGLcYFuuh04D7cnNqyuYgbdaq7YMKZfVGxM7N5eeL5xSlw0Sl9yOutRzkxUmL1WSmYMFrkRLcc37hRTu67tCmP60tiGLGY2Ll8nUh6rkc3RwBgc1wOC7jRMrtoGvlgsLxz7kLOtpQ31PdJKefe99rQMkcYKLwCxXf7WQdOHY4YsTmjqlPyzfTKT3mNtGhUwp1rEvlcygZZK8osHtc46BUD6BKNRCvTyLNyLTx2IoA4WfrzWOaQ+A1gNRD5L9Jbqi0kY6teENCzzlHUe80mH7wBarCTRoDAD73w/EPgSn3+CeLALXXEu+r9Sm/e5YpaFfLdeKDC6fr1KwU69ddHUKWZqjFM8vEHjrIbmAdNwVsuCo8LeWdCCXdQlWrISQ4OUDBBEmnwlKoojSjIYP5SKoH1txZemGok1/TN/tvjlyrx2RYYxy7AdUulENKXXeqlwWsiwVZCZLR4tt+wEQ="
matrix:
include:
- env: TARGET="coverity"
php: '7.2'
script: echo "Coverity, nothing to do."
after_success: cat /home/travis/build/nbs-system/snuffleupagus/cov-int/scm_log.txt
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-
addons:
coverity_scan:
project:
name: "nbs-system/snuffleupagus"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cd src; phpize; ./configure --enable-snuffleupagus; cd -"
build_command: "make debug -j2"
branch_pattern: master
- env: TARGET="gcc php7.0" CC="gcc"
php: '7.0'
- env: TARGET="gcc php7.1" CC="gcc"
php: '7.1'
- env: TARGET="gcc php7.2" CC="gcc"
before_install: pip install --user cpp-coveralls
php: '7.2'
- env: TARGET="clang php7.0" CC="clang"
php: '7.0'
- env: TARGET="clang php7.1" CC="clang"
php: '7.1'
- env: TARGET="clang php7.2" CC="clang"
php: '7.2'
- env: TARGET="gcc php nightly" CC="gcc"
php: nightly
- env: TARGET="clang php nightly" CC="clang"
php: nightly
allow_failures:
- env: TARGET="clang php nightly" CC="clang" # https://bugs.llvm.org/show_bug.cgi?id=9295
php: nightly
script:
- 'if [[ ! "${TARGET}" = *"nightly"* ]]; then
pecl install vld-beta ;
fi'
- cd src
- phpize
- ./configure --enable-snuffleupagus --enable-coverage
- make -j 2
- TEST_PHP_ARGS="-q" REPORT_EXIT_STATUS=1 make test
after_success:
- 'if [ "${TARGET}" = "gcc php7.2" ]; then
git clone https://github.com/linux-test-project/lcov.git --depth 1 ;
rm -rf ./lcov/examples/ ./lcov/test/ ;
./lcov/bin/lcov -c -o ./COV.info --rc lcov_branch_coverage=1 --base-directory . --directory . ;
./lcov/bin/lcov --remove ./COV.info "/usr/*" --remove ./COV.info "*tweetnacl.c" -o ./COV.info --rc lcov_branch_coverage=1 ;
./lcov/bin/genhtml -o ./COV.html ./COV.info --branch-coverage ;
coveralls --exclude "tweetnacl.c" ;
fi'
after_failure:
- grep -r . ./tests/*.out
- grep -r . ./tests/*.diff