Skip to content

Commit

Permalink
Force PHP version for Scrutinizer
Browse files Browse the repository at this point in the history
Don't run coverage on each build
  • Loading branch information
j0k3r committed Jun 8, 2020
1 parent 82b5dd0 commit c4be156
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .scrutinizer.yml
Expand Up @@ -7,3 +7,8 @@ build:
tests:
override:
- php-scrutinizer-run

my-tests:
environment:
php:
version: 7.2
14 changes: 9 additions & 5 deletions .travis.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
- php: 7.2
env: SYMFONY_PHPUNIT_VERSION=7.5 COMPOSER_FLAGS="--prefer-lowest"
- php: 7.3
env: SYMFONY_PHPUNIT_VERSION=7.5 CS_FIXER=run
env: SYMFONY_PHPUNIT_VERSION=7.5 CS_FIXER=run COVERAGE=run
- php: 7.4
env: SYMFONY_PHPUNIT_VERSION=7.5
- php: nightly
Expand All @@ -38,13 +38,17 @@ install:

before_script:
- mkdir -p build/logs
- if [ "$COVERAGE" = "run" ]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi;

script:
- php vendor/bin/simple-phpunit -v --coverage-clover build/logs/clover.xml
- php vendor/bin/simple-phpunit -v $PHPUNIT_FLAGS
- if [ "$CS_FIXER" = "run" ]; then php vendor/bin/php-cs-fixer fix --verbose --dry-run ; fi;
- if [ "$CS_FIXER" = "run" ]; then php vendor/bin/phpstan analyse src tests --no-progress --level 1 ; fi;

after_success:
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar
- chmod +x php-coveralls.phar
- php php-coveralls.phar -v -x build/logs/clover.xml
- |
if [ "$COVERAGE" = "run" ]; then
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar
chmod +x php-coveralls.phar
php php-coveralls.phar -v -x build/logs/clover.xml
fi

0 comments on commit c4be156

Please sign in to comment.