8
8
include :
9
9
- php : ' 7.1'
10
10
- php : ' 7.2'
11
+ - php : ' 7.3'
11
12
env : coverage=1 lint=1
12
- - php : ' 7.2 '
13
+ - php : ' 7.3 '
13
14
env : deps='low'
14
15
15
16
before_install :
@@ -18,22 +19,23 @@ before_install:
18
19
- export PATH="$PATH:$HOME/.composer/vendor/bin"
19
20
- wget -O phpunit.phar https://phar.phpunit.de/phpunit-7.5.phar
20
21
- if [[ $coverage = 1 ]]; then mkdir -p build/logs; fi
21
- - if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v2.0 .0/php-coveralls.phar; fi
22
- - if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.10 .0/php-cs-fixer.phar; fi
23
- - if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.10 '; fi
24
- - wget -O box.phar https://github.com/humbug/box/releases/download/3.2.0 /box.phar
22
+ - if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v2.1 .0/php-coveralls.phar; fi
23
+ - if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.16 .0/php-cs-fixer.phar; fi
24
+ - if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.11 '; fi
25
+ - wget -O box.phar https://github.com/humbug/box/releases/download/3.8.3 /box.phar
25
26
- export BOX_BIN=$(pwd)/box.phar
26
27
27
28
install :
28
29
- if [[ $coverage = 1 ]]; then composer require --dev --no-update 'phpunit/php-code-coverage:^5.3'; fi
29
- - if [[ ! $deps ]]; then composer install --prefer-dist --no-progress --no-suggest --ansi; fi
30
+ - if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.3" ]]; then composer install --prefer-dist --no-progress --no-suggest --ansi; fi
31
+ - if [[ $TRAVIS_PHP_VERSION != "7.3" ]]; then composer update --prefer-dist --no-progress --no-suggest --ansi; fi
30
32
- if [[ $deps = 'low' ]]; then composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi
31
33
32
34
script :
33
35
- if [[ $coverage = 1 ]]; then phpdbg -qrr phpunit.phar --coverage-clover build/logs/clover.xml; else php phpunit.phar; fi
34
36
- if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi
35
37
- if [[ $lint = 1 ]]; then phpstan analyse -l5 --ansi src; fi
36
- - if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.2 " ]]; then ./bin/compile; fi
38
+ - if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.3 " ]]; then ./bin/compile; fi
37
39
38
40
after_success :
39
41
- if [[ $coverage = 1 ]]; then travis_retry php php-coveralls.phar; fi
@@ -47,5 +49,5 @@ deploy:
47
49
on :
48
50
tags : true
49
51
repo : api-platform/schema-generator
50
- php : ' 7.2 '
52
+ php : ' 7.3 '
51
53
condition : " ! $deps"
0 commit comments