Skip to content

Commit f350df0

Browse files
authored
Merge pull request #68 from doctrine/php-8
Test against PHP 8
2 parents 0660999 + 0588e80 commit f350df0

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.travis.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,25 @@ php:
88
- 7.3
99
- 7.4
1010

11+
env:
12+
global:
13+
- COMPOSER_ROOT_VERSION=1.3
14+
1115
before_install:
1216
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
13-
- travis_retry composer self-update
1417

1518
install:
16-
- composer validate --strict
1719
- rm composer.lock
1820
- travis_retry composer update --prefer-dist
21+
- composer validate --strict
1922

2023
script:
2124
- ./vendor/bin/phpunit -v
2225

2326
jobs:
27+
allow_failures:
28+
- php: nightly
29+
2430
include:
2531
- stage: Test
2632
env: COVERAGE
@@ -34,6 +40,12 @@ jobs:
3440
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
3541
- travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
3642

43+
- stage: Test
44+
php: nightly
45+
before_install:
46+
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
47+
- composer config platform.php 7.4.99
48+
3749
- stage: Code Quality
3850
env: CODING_STANDARDS
3951
php: 7.1

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
},
2323
"require": {
24-
"php": "^7.1"
24+
"php": "^7.1 || ^8.0"
2525
},
2626
"require-dev": {
2727
"ext-phar": "*",

composer.lock

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
stopOnFailure="false"
1010
processIsolation="false"
1111
backupGlobals="false"
12-
syntaxCheck="true"
1312
>
1413
<testsuite name="Doctrine\Instantiator tests">
1514
<directory>./tests/DoctrineTest/InstantiatorTest</directory>

0 commit comments

Comments
 (0)