diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 611d2d4..ea188c2 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -5,7 +5,7 @@ checks: php: true tools: external_code_coverage: - runs: 3 + runs: 5 php_code_sniffer: config: standard: "PSR2" \ No newline at end of file diff --git a/.travis.before_script b/.travis.before_script new file mode 100755 index 0000000..9f0e255 --- /dev/null +++ b/.travis.before_script @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -eux + +if [[ "$TRAVIS_PHP_VERSION" =~ ^5.6|7.0$ ]]; then + # PHP 5.6 and 7.0 are not compatible with the development dependency `phpbench/phpbench` + sed -i 's/.*phpbench\/phpbench.*//g' composer.json +fi + +composer install --prefer-source diff --git a/.travis.yml b/.travis.yml index f500bda..56645fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ php: - '5.6' - '7.0' - '7.1' + - '7.2' + - '7.3' - hhvm - nightly @@ -18,7 +20,7 @@ cache: before_script: - composer self-update - - composer install --prefer-source + - ./.travis.before_script script: ./vendor/bin/phpunit @@ -28,4 +30,4 @@ after_script: php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi -sudo: false \ No newline at end of file +sudo: false