9
9
matrix :
10
10
include :
11
11
- php : ' 7.1'
12
+ - php : ' 7.2'
12
13
env : coverage=1 lint=1
13
- - php : ' 7.1 '
14
+ - php : ' 7.2 '
14
15
env : deps='low'
15
16
16
17
before_install :
17
18
- phpenv config-rm xdebug.ini || echo "xdebug not available"
18
19
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
19
20
- export PATH="$PATH:$HOME/.composer/vendor/bin"
20
- - wget https://phar.phpunit.de/phpunit-6.3 .phar
21
+ - wget https://phar.phpunit.de/phpunit-6.5 .phar
21
22
- composer global require humbug/php-scoper:dev-master#674e24d2b9e90b2f629dab7f30d5070e4d49d815
22
23
- if [[ $coverage = 1 ]]; then mkdir -p build/logs; fi
23
- - if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v1 .0.1/ coveralls.phar; fi
24
- - if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.4 .0/php-cs-fixer.phar; fi
24
+ - if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v2 .0.0/php- coveralls.phar; fi
25
+ - if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.10 .0/php-cs-fixer.phar; fi
25
26
- if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.8'; fi
26
- - if [[ $ TRAVIS_PHP_VERSION = "7.1 " ]]; then curl -LSs https://box-project.github.io/box2/installer.php | php; fi;
27
+ - if [[ ! $deps && $ TRAVIS_PHP_VERSION = "7.2 " ]]; then curl -LSs https://box-project.github.io/box2/installer.php | php; fi;
27
28
28
29
install :
29
- - if [[ $coverage = 1 ]]; then composer require --dev --no-update 'phpunit/php-code-coverage:^4.0.1 '; fi
30
+ - if [[ $coverage = 1 ]]; then composer require --dev --no-update 'phpunit/php-code-coverage:^5.3 '; fi
30
31
- if [[ ! $deps ]]; then composer update --prefer-dist --no-progress --no-suggest --ansi; fi
31
32
- if [[ $deps = 'low' ]]; then composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi
32
33
33
34
script :
34
- - if [[ $coverage = 1 ]]; then phpdbg -qrr phpunit-6.3.phar --coverage-clover build/logs/clover.xml; else php phpunit-6.3 .phar; fi
35
+ - if [[ $coverage = 1 ]]; then phpdbg -qrr phpunit-6.3.phar --coverage-clover build/logs/clover.xml; else php phpunit-6.5 .phar; fi
35
36
- if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi
36
37
- if [[ $lint = 1 ]]; then phpstan analyse -l5 --ansi src; fi
37
38
- |
38
- if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.1 " ]]; then
39
+ if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.2 " ]]; then
39
40
composer install --no-dev --prefer-dist --classmap-authoritative --no-progress --no-suggest --ansi;
40
41
~/.composer/vendor/bin/php-scoper add-prefix --output-dir=build/schema-generator;
41
42
composer --working-dir=build/schema-generator dump-autoload --classmap-authoritative --no-dev;
@@ -47,7 +48,7 @@ script:
47
48
fi;
48
49
49
50
after_success :
50
- - if [[ $coverage = 1 ]]; then travis_retry php coveralls.phar; fi
51
+ - if [[ $coverage = 1 ]]; then travis_retry php php- coveralls.phar; fi
51
52
52
53
deploy :
53
54
provider : releases
@@ -58,5 +59,5 @@ deploy:
58
59
on :
59
60
tags : true
60
61
repo : api-platform/schema-generator
61
- php : ' 7.1 '
62
+ php : ' 7.2 '
62
63
condition : " ! $deps"
0 commit comments