Skip to content

Commit 355187b

Browse files
committed
move ECS & phpstan into a stage
1 parent 17333cc commit 355187b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.travis.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,27 @@ language: php
22
php: [7.1, 7.2, nightly ]
33
sudo: false
44

5-
matrix:
6-
include:
7-
- php: 7.1
8-
env: ECS=true
9-
- php: 7.1
10-
env: PHPSTAN=true
11-
125
env:
136
global:
147
- VERSION=$(echo $TRAVIS_TAG | cut -c 2-10)
158

169
install:
1710
- composer install --no-interaction --prefer-dist -o
18-
- if [[ $ECS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
1911

2012
jobs:
2113
include:
2214
- stage: Test
2315
script:
2416
- vendor/bin/phpunit
25-
- if [[ $ECS != "" ]]; then temp/ecs/bin/ecs check src tests; fi
26-
- if [[ $PHPSTAN != "" ]]; then vendor/bin/phpstan analyse src --level max --configuration phpstan.neon; fi
17+
18+
- stage: lint
19+
php: 7.1
20+
script: vendor/bin/phpstan analyse src --level max --configuration phpstan.neon;
21+
22+
- stage lint
23+
php: 7.1
24+
script: temp/ecs/bin/ecs check src tests;
25+
before_script: composer create-project symplify/easy-coding-standard temp/ecs;
2726

2827
- stage: Coverage
2928
php: 7.1

0 commit comments

Comments
 (0)