Skip to content

Commit

Permalink
run satooshi/php-coveralls from a separate project due to Symfony 3.x…
Browse files Browse the repository at this point in the history
… incompatiblity
  • Loading branch information
craue committed Dec 3, 2015
1 parent a6492b2 commit c67560f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ before_script:

script:
- phpunit -v --coverage-clover build/logs/clover.xml
- if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;
- if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ]; then bash travis_upload_code_coverage_data.sh; fi;

notifications:
email:
Expand Down
1 change: 0 additions & 1 deletion travis_install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ if [ -n "${MIN_STABILITY:-}" ]; then
sed -i -e "s/\"minimum-stability\": \"stable\"/\"minimum-stability\": \"${MIN_STABILITY}\"/" composer.json
fi

composer require --no-update satooshi/php-coveralls:"~0.6@stable" guzzle/guzzle:">=3.0.4@stable"
composer remove --no-update symfony/form symfony/http-kernel symfony/translation symfony/yaml

if [ -n "${SYMFONY_VERSION:-}" ]; then
Expand Down
23 changes: 23 additions & 0 deletions travis_upload_code_coverage_data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

set -euv

#####
# run satooshi/php-coveralls from a separate project due to Symfony 3.x incompatiblity
#####

# disable Xdebug for running Composer
phpenv config-rm xdebug.ini

composer -n init --require-dev satooshi/php-coveralls:~0.6

# enforce Symfony 2 to be used while avoiding to replace already installed 2.x with 2.y
if [[ -n "${SYMFONY_VERSION:-}" && "${SYMFONY_VERSION}" == 2* ]]; then
composer require --no-update --dev symfony/symfony:"${SYMFONY_VERSION}"
else
composer require --no-update --dev symfony/symfony:~2.0
fi

composer update --prefer-dist

php vendor/bin/coveralls -v

0 comments on commit c67560f

Please sign in to comment.