Merge pull request #131 from creative-commoners/pulls/4/php8

MNT PHP8 support
This commit is contained in:
Andre Kiste 2020-10-13 12:58:20 +13:00 committed by GitHub
commit 466ec19b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -19,13 +19,15 @@ matrix:
fast_finish: true fast_finish: true
include: include:
- php: 7.1 - php: 7.1
env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1 env: DB=MYSQL PHPUNIT_TEST=1 COMPOSER_ARG=--prefer-lowest
- php: 7.2 - php: 7.2
env: DB=MYSQL PHPUNIT_TEST=1 env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1
- php: 7.3 - php: 7.3
env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1 env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1
- php: 7.4 - php: 7.4
env: DB=MYSQL PHPUNIT_TEST=1 env: DB=MYSQL PHPUNIT_TEST=1
- php: nightly
env: PHPUNIT_TEST=1 COMPOSER_ARG=--ignore-platform-reqs
before_script: before_script:
# Init PHP # Init PHP
@ -39,7 +41,7 @@ before_script:
- if [[ $DB == SQLITE ]]; then composer require silverstripe/sqlite3:2.x-dev --no-update; fi - if [[ $DB == SQLITE ]]; then composer require silverstripe/sqlite3:2.x-dev --no-update; fi
- composer require silverstripe/recipe-core:4.x-dev silverstripe/admin:1.x-dev silverstripe/versioned:1.x-dev --no-update - composer require silverstripe/recipe-core:4.x-dev silverstripe/admin:1.x-dev silverstripe/versioned:1.x-dev --no-update
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi - if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile - composer update --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile $COMPOSER_ARG
script: script:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests; fi - if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests; fi

View File

@ -28,7 +28,7 @@
"silverstripe/vendor-plugin": "^1" "silverstripe/vendor-plugin": "^1"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^5.7" "sminnee/phpunit": "^5.7"
}, },
"extra": { "extra": {
"expose": [ "expose": [