Skip to content

Commit 6c9f8a3

Browse files
authored
Run the test suite with 7.2. Bump some versions. (#120)
1 parent 89316cc commit 6c9f8a3

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.travis.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,34 @@ cache:
99
matrix:
1010
include:
1111
- php: '7.1'
12+
- php: '7.2'
1213
env: coverage=1 lint=1
13-
- php: '7.1'
14+
- php: '7.2'
1415
env: deps='low'
1516

1617
before_install:
1718
- phpenv config-rm xdebug.ini || echo "xdebug not available"
1819
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
1920
- 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
2122
- composer global require humbug/php-scoper:dev-master#674e24d2b9e90b2f629dab7f30d5070e4d49d815
2223
- 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
2526
- 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;
2728

2829
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
3031
- if [[ ! $deps ]]; then composer update --prefer-dist --no-progress --no-suggest --ansi; fi
3132
- if [[ $deps = 'low' ]]; then composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi
3233

3334
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
3536
- if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi
3637
- if [[ $lint = 1 ]]; then phpstan analyse -l5 --ansi src; fi
3738
- |
38-
if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.1" ]]; then
39+
if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.2" ]]; then
3940
composer install --no-dev --prefer-dist --classmap-authoritative --no-progress --no-suggest --ansi;
4041
~/.composer/vendor/bin/php-scoper add-prefix --output-dir=build/schema-generator;
4142
composer --working-dir=build/schema-generator dump-autoload --classmap-authoritative --no-dev;
@@ -47,7 +48,7 @@ script:
4748
fi;
4849
4950
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
5152

5253
deploy:
5354
provider: releases
@@ -58,5 +59,5 @@ deploy:
5859
on:
5960
tags: true
6061
repo: api-platform/schema-generator
61-
php: '7.1'
62+
php: '7.2'
6263
condition: "! $deps"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"symfony/config": "^3.3 || ^4.0",
2929
"symfony/console": "^2.7 || ^3.0 || ^4.0",
3030
"symfony/yaml": "^2.7 || ^3.0 || ^4.0",
31-
"twig/twig": "^1.12 || ^2.0"
31+
"twig/twig": "^1.35 || ^2.0"
3232
},
3333
"require-dev": {
3434
"api-platform/core": "^2.0",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)