Skip to content

Commit

Permalink
Merge 894e4f6 into a8bdda4
Browse files Browse the repository at this point in the history
  • Loading branch information
kunicmarko20 committed May 1, 2018
2 parents a8bdda4 + 894e4f6 commit a0d4f47
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ matrix:
# Test LTS versions. This makes sure we do not use Symfony packages with version greater
# than 2 or 3 respectively. Read more at https://github.com/symfony/lts
- php: 7.1
env: DEPENDENCIES="symfony/lts:^2" PHPUNIT_FLAGS="-v --coverage-clover build/clover.xml --exclude-group installation" SYMFONY_PHPUNIT_VERSION="6.5" COVERAGE=true
env:
- DEPENDENCIES="symfony/lts:^2"
- PHPUNIT_FLAGS="-v --coverage-clover build/logs/clover.xml --exclude-group installation"
- SYMFONY_PHPUNIT_VERSION="6.5"
- COVERAGE=true

- php: 7.2
env: DEPENDENCIES="symfony/lts:^3"

Expand All @@ -42,7 +47,6 @@ matrix:
- env: STABILITY="dev"

before_install:
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;

Expand All @@ -51,6 +55,7 @@ install:

script:
- if [ -x .travis/script_${TARGET}.sh ]; then .travis/script_${TARGET}.sh; fi;

after_success: .travis/success.sh

branches:
Expand Down
7 changes: 5 additions & 2 deletions .travis/success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ set -e
COVERAGE=${COVERAGE-false}

if [ "${COVERAGE}" == true ]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
# Coveralls client install
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar --output-document="${HOME}/bin/coveralls"
chmod u+x "${HOME}/bin/coveralls"

coveralls -v
fi;

0 comments on commit a0d4f47

Please sign in to comment.