Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
midorikocak committed Feb 4, 2020
1 parent e5de444 commit 0822140
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 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: 1
26 changes: 12 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0822140

Please sign in to comment.