Skip to content

Commit

Permalink
disable Xdebug while running Composer
Browse files Browse the repository at this point in the history
  • Loading branch information
craue committed Mar 24, 2016
1 parent 064c077 commit e2140fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,23 @@ matrix:
fast_finish: true

install:
# set unlimited memory_limit
- if [ "${TRAVIS_PHP_VERSION}" != 'hhvm' ]; then INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else INI_FILE=/etc/hhvm/php.ini; fi;
- echo "memory_limit = -1" >> "${INI_FILE}"
# disable Xdebug for better Composer performance
- if [ "${TRAVIS_PHP_VERSION}" != 'hhvm' ]; then mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini xdebug.ini; fi;
# install dependencies using Composer
- bash .travis_install_dependencies.sh

before_script:
- mkdir -p build/logs

script:
# enable Xdebug for code coverage analysis
- if [ "${TRAVIS_PHP_VERSION}" != 'hhvm' ]; then mv xdebug.ini ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini; fi;
# run PHPUnit
- vendor/bin/phpunit -v --coverage-clover build/logs/clover.xml
# upload code coverage data
- if [ "${TRAVIS_PHP_VERSION}" != 'hhvm' ]; then travis_retry wget -q https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && travis_retry php coveralls.phar -v; fi;

notifications:
Expand Down

0 comments on commit e2140fc

Please sign in to comment.