Skip to content

Commit

Permalink
Merge pull request #63 from ashnazg/ci
Browse files Browse the repository at this point in the history
CI Updates
  • Loading branch information
ashnazg authored Aug 8, 2018
2 parents 6d8a0d1 + cf804a2 commit f989f45
Show file tree
Hide file tree
Showing 8 changed files with 301 additions and 434 deletions.
15 changes: 10 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,37 @@ matrix:

install:
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
- travis_retry wget https://phar.io/releases/phive.phar

script:
- ./vendor/bin/phpunit --no-coverage

jobs:
include:
- stage: coverage
- stage: analysis
php: 7.1
script:
- ./vendor/bin/phpunit
after_script:
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

- stage: lint
- stage: analysis
php: 7.1
before_script:
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
script:
- ./tools/phpstan analyse src --level max --configuration phpstan.neon

- stage: analysis
php: 7.1
script:
- composer create-project symplify/easy-coding-standard temp/ecs ^3 && temp/ecs/bin/ecs check src tests

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

notifications:
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"email": "[email protected]"
}
],
"minimum-stability": "alpha",
"minimum-stability": "beta",
"require": {
"php": ">=7.1",
"phpdocumentor/reflection-common": "^2"
"phpdocumentor/reflection-common": "~2.0.0-beta1"
},
"require-dev": {
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^6.5"
"mockery/mockery": "~1",
"phpunit/phpunit": "~6"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit f989f45

Please sign in to comment.