move ECS & phpstan into a stage

This commit is contained in:
Chuck Burgess
2018-01-08 07:06:44 -06:00
parent 17333cc096
commit 355187b692
+9 -10
View File
@@ -2,28 +2,27 @@ language: php
php: [7.1, 7.2, nightly ] php: [7.1, 7.2, nightly ]
sudo: false sudo: false
matrix:
include:
- php: 7.1
env: ECS=true
- php: 7.1
env: PHPSTAN=true
env: env:
global: global:
- VERSION=$(echo $TRAVIS_TAG | cut -c 2-10) - VERSION=$(echo $TRAVIS_TAG | cut -c 2-10)
install: install:
- composer install --no-interaction --prefer-dist -o - composer install --no-interaction --prefer-dist -o
- if [[ $ECS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
jobs: jobs:
include: include:
- stage: Test - stage: Test
script: script:
- vendor/bin/phpunit - vendor/bin/phpunit
- if [[ $ECS != "" ]]; then temp/ecs/bin/ecs check src tests; fi
- if [[ $PHPSTAN != "" ]]; then vendor/bin/phpstan analyse src --level max --configuration phpstan.neon; fi - stage: lint
php: 7.1
script: vendor/bin/phpstan analyse src --level max --configuration phpstan.neon;
- stage lint
php: 7.1
script: temp/ecs/bin/ecs check src tests;
before_script: composer create-project symplify/easy-coding-standard temp/ecs;
- stage: Coverage - stage: Coverage
php: 7.1 php: 7.1