Skip to content

Commit

Permalink
updating travis.yml (again) to attempt to get some coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bdelespierre committed Sep 21, 2021
1 parent 3f486ef commit 38afdbc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ checks:
tools:
external_code_coverage:
timeout: 600
runs: 3
runs: 2
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ php:
- 7.4
- 8.0

cache:
directories:
- $HOME/.composer/cache

env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
- XDEBUG_MODE=coverage

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
- travis_retry composer update --no-interaction --prefer-dist

script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": "^7.4|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6",
"phpstan/phpstan": "^0.12.97",
"mockery/mockery": "^1.4"
Expand Down
34 changes: 0 additions & 34 deletions phpunit.xml.dist_old

This file was deleted.

0 comments on commit 38afdbc

Please sign in to comment.