Skip to content

Commit 92c1424

Browse files
authored
Add php8.0 to composer.json (#430)
Add php8.0 to composer.json
1 parent d089d84 commit 92c1424

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.travis.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ php:
1616
- 7.2
1717
- 7.3
1818
- 7.4
19+
- nightly
1920

2021
matrix:
2122
include:
@@ -32,22 +33,27 @@ matrix:
3233
env:
3334
- SYMFONY_VERSION=5.0.*
3435
- COMPOSER_FLAGS="--prefer-stable"
35-
- DEPENDENCIES=beta
36+
- DEPENDENCIES='beta'
3637
- php: 7.4
3738
env: DEPENDENCIES='dev'
39+
- php: nightly
40+
env: DEPENDENCIES='dev'
3841

3942
before_install:
40-
- if [ "$DEPENDENCIES" == "dev" ]; then composer config minimum-stability dev; fi;
43+
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
44+
- if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then composer config platform.php 7.4.99; composer config minimum-stability dev; composer remove symfony/phpunit-bridge; composer require phpunit/php-code-coverage:^9.0; composer require phpunit/phpunit:^9.3; fi;
4145
- if [ "$DEPENDENCIES" == "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi;
4246
- |
4347
if [ "$SYMFONY_VERSION" != "" ]; then
4448
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'$SYMFONY_VERSION'"/' composer.json;
4549
fi;
4650
4751
install:
48-
- composer update $COMPOSER_FLAGS --prefer-dist
49-
- ./vendor/bin/simple-phpunit install
52+
- composer update $COMPOSER_FLAGS
53+
- if [[ $TRAVIS_PHP_VERSION != 'nightly' ]]; then ./vendor/bin/simple-phpunit install; fi;
54+
- if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then ./vendor/bin/phpunit; fi;
5055

5156
script:
5257
- composer validate --strict --no-check-lock
53-
- ./vendor/bin/simple-phpunit -v
58+
- if [[ $TRAVIS_PHP_VERSION != 'nightly' ]]; then php ./vendor/bin/simple-phpunit; fi;
59+
- if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then ./vendor/bin/phpunit; fi;

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^7.2",
23-
"knplabs/knp-menu": "^3.0",
22+
"php": "^7.2 || ^8.0",
23+
"knplabs/knp-menu": "^3.2@dev",
2424
"symfony/framework-bundle": "^3.4 | ^4.2 | ^5.0"
2525
},
2626
"require-dev": {

0 commit comments

Comments
 (0)