Skip to content

Commit 75a3176

Browse files
committed
Disable code coverage for PHP 7.4
1 parent 496d5ec commit 75a3176

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

.travis.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: php
2+
23
php:
34
- '7.4snapshot'
45
- '7.3'
@@ -7,7 +8,11 @@ php:
78
- '7.0'
89

910
git:
10-
depth: 1
11+
quiet: true
12+
depth: 5
13+
14+
notifications:
15+
email: false
1116

1217
addons:
1318
apt:
@@ -17,6 +22,10 @@ addons:
1722
- lcov
1823

1924
env:
25+
global:
26+
- MAKEJOBS="-j$(getconf _NPROCESSORS_ONLN)"
27+
- COVERAGE=ON
28+
- TRAVIS_COMMIT_LOG=`git log --format=fuller -2`
2029
matrix:
2130
- RE2C_VERSION="0.13.6"
2231
- RE2C_VERSION="1.1.1"
@@ -36,11 +45,18 @@ cache:
3645
before_install:
3746
- phpenv config-rm xdebug.ini || true
3847
- ulimit -c unlimited -S || true
48+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then export COVERAGE="OFF"; fi
3949

4050
install:
4151
- .ci/install-re2c.sh
4252
- phpize
43-
- aclocal && libtoolize --copy --force && autoheader && autoconf
53+
- |
54+
if [ $COVERAGE = "ON" ]; then
55+
aclocal
56+
libtoolize --copy --force
57+
autoheader
58+
autoconf
59+
fi
4460
- |
4561
./configure \
4662
--with-php-config=$(phpenv which php-config) \
@@ -50,10 +66,10 @@ install:
5066
LDFLAGS="${LDFLAGS} --coverage" \
5167
CFLAGS="${CFLAGS} -O0 -ggdb -fprofile-arcs -ftest-coverage" \
5268
CXXFLAGS="${CXXFLAGS} -O0 -ggdb -fprofile-arcs -ftest-coverage"
53-
- make -j"$(getconf _NPROCESSORS_ONLN)"
69+
- make $MAKEJOBS
5470

5571
before_script:
56-
- make coverage-initial
72+
- if [ $COVERAGE = "ON" ]; then make coverage-initial; fi
5773

5874
script:
5975
- .ci/run-tests.sh
@@ -62,8 +78,12 @@ after_failure:
6278
- .ci/after-failure.sh
6379

6480
after_success:
65-
- make coverage-capture
66-
- bash <(curl -s https://codecov.io/bash)
81+
- |
82+
if [ $COVERAGE = "ON" ]; then
83+
make coverage-capture
84+
bash <(curl -s https://codecov.io/bash)
85+
fi
6786
68-
notifications:
69-
email: false
87+
after_script:
88+
- printf "$TRAVIS_COMMIT_RANGE\n"
89+
- printf "$TRAVIS_COMMIT_LOG\n"

0 commit comments

Comments
 (0)