Permalink
Browse files

Change travis to use Xdebug rather than phpdbg

  • Loading branch information...
REBELinBLUE committed Sep 28, 2017
1 parent c828834 commit ea5650599acec43262af0d35047b6ef5aadcc78d
Showing with 17 additions and 4 deletions.
  1. +4 −3 .travis.yml
  2. +13 −1 Makefile
View
@@ -1,4 +1,4 @@
sudo: false
sudo: true
language: php
@@ -36,13 +36,14 @@ matrix:
- postgresql
before_install:
- phpenv config-rm xdebug.ini
- if [[ "$TRAVIS_PHP_VERSION" != "7.1" ]]; then
phpenv config-rm xdebug.ini;
fi
install:
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
before_script:
- ulimit -c unlimited -S
- cp -f $TRAVIS_BUILD_DIR/tests/.env.travis $TRAVIS_BUILD_DIR/.env
- make permissions
- make travis
View
@@ -182,7 +182,19 @@ endif
# PHPUnit for Travis
ifeq "$(TRAVIS_PHP_VERSION)" "7.1.0"
phpunit-ci: coverage
phpunit-ci:
# phpdbg isn't working on travis, hitting the max open files limit
@echo "${GREEN}All tests with coverage${RESET}"
@php vendor/bin/phpunit --coverage-text=/dev/null --coverage-php=storage/app/tmp/unit.cov \
--testsuite "Unit Tests" --log-junit=storage/app/tmp/unit.junit.xml --exclude-group slow
@php vendor/bin/phpunit --coverage-text=/dev/null --coverage-php=storage/app/tmp/slow.cov \
--testsuite "Unit Tests" --log-junit=storage/app/tmp/slow.junit.xml --exclude-group default
@php vendor/bin/phpunit --coverage-text=/dev/null --coverage-php=storage/app/tmp/integration.cov \
--log-junit=storage/app/tmp/integration.junit.xml --testsuite "Integration Tests"
@php vendor/bin/phpcov merge storage/app/tmp/ \
--html storage/app/tmp/coverage/ --clover storage/app/tmp/coverage.xml
@php vendor/bin/phpjunitmerge --names="*.junit.xml" storage/app/tmp/ storage/app/tmp/junit.xml
@rm -f storage/app/tmp/*.cov storage/app/tmp/*.junit.xml
else
phpunit-ci: phpunit integration
endif

0 comments on commit ea56505

Please sign in to comment.