File tree Expand file tree Collapse file tree 1 file changed +27
-21
lines changed Expand file tree Collapse file tree 1 file changed +27
-21
lines changed Original file line number Diff line number Diff line change @@ -3,29 +3,35 @@ sudo: false
3
3
php :
4
4
- 7.1
5
5
- 7.4
6
- env :
7
- global :
8
- # We need to prefer source to get PHPStan test directory. Otherwise, it is removed from ZIP
9
- - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --optimize-autoloader --prefer-source"
10
- - TASK_TESTS=1
11
- - TASK_TESTS_COVERAGE=0
12
- - TASK_CS=1
13
- - TASK_SCA=0
14
- matrix :
15
- - COMPOSER_FLAGS="--prefer-lowest"
16
- - COMPOSER_FLAGS=""
6
+ jobs :
7
+ include :
8
+ - php : 7.4
9
+ env : PREFER_LOWEST=""
10
+ before_script :
11
+ - &composerupdate
12
+ composer update --no-interaction --no-progress --optimize-autoloader $PREFER_LOWEST
13
+ script :
14
+ - &phpunit
15
+ " ./vendor/bin/phpunit"
16
+ - composer phpstan
17
+ - composer cs-check
18
+ after_script :
19
+ - travis_retry php vendor/bin/php-coveralls -v
20
+ - php : 7.1
21
+ env : PREFER_LOWEST=""
22
+ before_script :
23
+ - *composerupdate
24
+ script :
25
+ - *phpunit
26
+ - php : 7.1
27
+ env : PREFER_LOWEST="--prefer-lowest"
28
+ before_script :
29
+ - *composerupdate
30
+ script :
31
+ - *phpunit
32
+
17
33
cache :
18
34
directories :
19
35
- " $HOME/.composer/cache"
20
- before_install :
21
- - travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
22
- install :
23
- - travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
24
- - composer info -D | sort
25
- - mkdir tmp
26
- script :
27
- - vendor/bin/phpunit --verbose;
28
- - composer phpstan
29
- - composer cs-check
30
36
after_success :
31
37
- vendor/bin/coveralls -v
You can’t perform that action at this time.
0 commit comments