Skip to content

Commit

Permalink
minor #4636 DX: do not check for PHPDBG when collecting coverage (kub…
Browse files Browse the repository at this point in the history
…awerlos)

This PR was merged into the 2.15 branch.

Discussion
----------

DX: do not check for PHPDBG when collecting coverage

Commits
-------

4687a73 DX: do not check for PHPDBG when collecting coverage
  • Loading branch information
keradus committed Nov 28, 2019
2 parents 461b676 + 4687a73 commit 1d0996d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ cache:
env:
global:
- DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress"
- COLLECT_COVERAGE=0
- COMPOSER_FLAGS=""

before_install:
Expand Down Expand Up @@ -94,23 +93,18 @@ jobs:
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.3
name: 7.3 | With migration rules
before_script:
- php php-cs-fixer fix --rules @PHP71Migration,@PHP71Migration:risky,blank_line_after_opening_tag -q || travis_terminate 1

-
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.3
env: COLLECT_COVERAGE=1
name: 7.3 | Collect coverage
before_install:
# check phpdbg
- phpdbg --version 2> /dev/null || { echo 'No phpdbg'; export COLLECT_COVERAGE=0; }

# for building a tag release we don't need to collect code coverage
- if [ $TRAVIS_TAG ]; then export COLLECT_COVERAGE=0; fi

# terminate job when no coverage collecting shall be performed
- if [ $COLLECT_COVERAGE == 0 ]; then travis_terminate 0; fi
- if [ $TRAVIS_TAG ]; then travis_terminate 0; fi

## regular `before_install`
# turn off XDebug
Expand Down

0 comments on commit 1d0996d

Please sign in to comment.