From 082214083fbb8aadbb9c27f86edc55fc0d4863b2 Mon Sep 17 00:00:00 2001 From: midorikocak Date: Tue, 4 Feb 2020 06:05:17 +0100 Subject: [PATCH] ci --- .scrutinizer.yml | 2 +- .travis.yml | 26 ++++++++++++-------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 27497c2..4e48850 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -28,4 +28,4 @@ checks: tools: external_code_coverage: timeout: 600 - runs: 3 + runs: 1 diff --git a/.travis.yml b/.travis.yml index 3bdf78c..5097238 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,28 +2,26 @@ dist: trusty language: php php: - - 7.4 + - 7.4 ## Cache composer cache: - directories: - - $HOME/.composer/cache + directories: + - $HOME/.composer/cache matrix: - include: - - php: 7.4 - env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"' + include: + - php: 7.4 + env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"' before_script: - - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist + - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist script: - - vendor/bin/phpcs --standard=psr12 src/ - - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover + - vendor/bin/phpcs --standard=psr12 src/ + - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover after_script: - - | - if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then - wget https://scrutinizer-ci.com/ocular.phar - php ocular.phar code-coverage:upload --format=php-clover coverage.clover - fi + - | + wget https://scrutinizer-ci.com/ocular.phar + php ocular.phar code-coverage:upload --format=php-clover coverage.clover