Skip to content

Commit 40c2910

Browse files
committed
Refactoring travis
1 parent 4ab20fb commit 40c2910

File tree

1 file changed

+32
-18
lines changed

1 file changed

+32
-18
lines changed

.travis.yml

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
11
language: php
22

3-
php:
4-
- "7.1"
5-
- "7.2"
6-
7-
env:
8-
matrix:
9-
- PREFER_LOWEST=""
10-
- PREFER_LOWEST="--prefer-lowest"
11-
12-
before_script:
13-
- composer update --no-interaction $PREFER_LOWEST
14-
15-
script:
16-
- vendor/bin/phpunit
17-
- composer phpstan
18-
19-
after_script:
20-
- php vendor/bin/coveralls -v
3+
cache:
4+
directories:
5+
- $HOME/.composer/cache
6+
- .php_cs
7+
jobs:
8+
include:
9+
- stage: test
10+
php: 7.2
11+
env: PREFER_LOWEST=""
12+
before_script:
13+
- &composerupdate
14+
composer update --prefer-dist $PREFER_LOWEST
15+
script:
16+
- &phpunit
17+
"./vendor/bin/phpunit"
18+
- composer phpstan
19+
after_script:
20+
- ./vendor/bin/coveralls -v
21+
- stage: test
22+
php: 7.2
23+
env: PREFER_LOWEST="--prefer-lowest"
24+
before_script:
25+
- *composerupdate
26+
script:
27+
- *phpunit
28+
- stage: test
29+
php: 7.1
30+
env: PREFER_LOWEST=""
31+
before_script:
32+
- *composerupdate
33+
script:
34+
- *phpunit

0 commit comments

Comments
 (0)