mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 18:13:13 +00:00
move ECS & phpstan into a stage
This commit is contained in:
+9
-10
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user