Skip to content

Commit

Permalink
Merge pull request #68 from doctrine/php-8
Browse files Browse the repository at this point in the history
Test against PHP 8
  • Loading branch information
greg0ire committed May 29, 2020
2 parents 0660999 + 0588e80 commit f350df0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
16 changes: 14 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ php:
- 7.3
- 7.4

env:
global:
- COMPOSER_ROOT_VERSION=1.3

before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- travis_retry composer self-update

install:
- composer validate --strict
- rm composer.lock
- travis_retry composer update --prefer-dist
- composer validate --strict

script:
- ./vendor/bin/phpunit -v

jobs:
allow_failures:
- php: nightly

include:
- stage: Test
env: COVERAGE
Expand All @@ -34,6 +40,12 @@ jobs:
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
- travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

- stage: Test
php: nightly
before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- composer config platform.php 7.4.99

- stage: Code Quality
env: CODING_STANDARDS
php: 7.1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
},
"require": {
"php": "^7.1"
"php": "^7.1 || ^8.0"
},
"require-dev": {
"ext-phar": "*",
Expand Down
7 changes: 4 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
stopOnFailure="false"
processIsolation="false"
backupGlobals="false"
syntaxCheck="true"
>
<testsuite name="Doctrine\Instantiator tests">
<directory>./tests/DoctrineTest/InstantiatorTest</directory>
Expand Down

0 comments on commit f350df0

Please sign in to comment.