Skip to content

Commit

Permalink
Merge Travis stages
Browse files Browse the repository at this point in the history
  • Loading branch information
Majkl578 committed Mar 5, 2018
1 parent fa091c0 commit 7050e32
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- php: nightly

include:
- stage: Coverage
- stage: Test
env: COVERAGE
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
Expand All @@ -36,11 +37,12 @@ jobs:
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
- travis_retry php ocular.phar code-coverage:upload --format=php-clover clover.xml

- stage: Coding standard
- stage: Code Quality
env: CODING_STANDARDS
install: travis_retry composer install --prefer-dist
script:
- ./vendor/bin/phpcs
script: ./vendor/bin/phpcs

- stage: Lint
- stage: Code Quality
env: STATIC_ANALYSIS
install: travis_retry composer install --prefer-dist
script: vendor/bin/phpstan analyse -l 3 lib

0 comments on commit 7050e32

Please sign in to comment.