Merge pull request #290 from creative-commoners/pulls/4/php-8-builds

MNT Add PHP 8 builds
This commit is contained in:
Serge Latyntsev 2020-10-23 11:21:40 +13:00 committed by GitHub
commit 495b9442d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View File

@ -29,20 +29,24 @@ matrix:
include:
# Core php tests
- php: 7.1
env: DB=MYSQL PHPUNIT_TEST=core PDO=1
env: DB=MYSQL PHPUNIT_TEST=core PDO=1 COMPOSER_ARG=--prefer-lowest
- php: 7.2
env: DB=MYSQL PHPUNIT_TEST=framework
- php: 7.3
env: DB=PGSQL PHPUNIT_TEST=core
- php: 7.4
env: DB=MYSQL PHPUNIT_TEST=core
- php: nightly
env: DB=MYSQL PHPUNIT_TEST=core COMPOSER_ARG=--ignore-platform-reqs
# admin php tests
- php: 7.1
env: DB=MYSQL PHPUNIT_TEST=admin PDO=1
env: DB=MYSQL PHPUNIT_TEST=admin PDO=1 COMPOSER_ARG=--prefer-lowest
- php: 7.2
env: DB=PGSQL PHPUNIT_TEST=admin
- php: 7.4
env: DB=MYSQL PHPUNIT_TEST=admin
- php: nightly
env: DB=MYSQL PHPUNIT_TEST=admin COMPOSER_ARG=--ignore-platform-reqs
# behat tests
- php: 7.1
env: DB=MYSQL BEHAT_TEST="@framework"
@ -77,8 +81,8 @@ before_script:
- if [[ $BEHAT_TEST ]]; then composer require --no-update silverstripe/recipe-testing:^1; fi;
- if [[ $BEHAT_TEST == "@asset-admin" ]]; then composer require --no-update silverstripe/frameworktest:^0.1.0; fi;
- if [[ $HEALTH_TEST ]]; then composer require --no-update silverstripe/serve:^2; fi;
- if ! [[ $HEALTH_TEST ]]; then composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile; fi;
- if [[ $HEALTH_TEST ]]; then composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile --no-dev; fi;
- if ! [[ $HEALTH_TEST ]]; then composer update --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile $COMPOSER_ARG; fi;
- if [[ $HEALTH_TEST ]]; then composer update --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile --no-dev $COMPOSER_ARG; fi;
# Start behat services
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then mkdir artifacts; fi

View File

@ -17,5 +17,5 @@ default:
browser_name: chrome
SilverStripe\BehatExtension\Extension:
bootstrap_file: vendor/silverstripe/cms/tests/behat/serve-bootstrap.php
screenshot_path: %paths.base%/artifacts/screenshots
screenshot_path: '%paths.base%/artifacts/screenshots'
retry_seconds: 4 # default is 2

View File

@ -3,14 +3,14 @@
"type": "silverstripe-recipe",
"description": "The SilverStripe Framework Installer",
"require": {
"php": ">=7.1.0",
"php": "^7.1 || ^8",
"silverstripe/recipe-plugin": "^1.2",
"silverstripe/recipe-cms": "4.x-dev",
"silverstripe-themes/simple": "~3.2.0",
"silverstripe/login-forms": "4.x-dev"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"sminnee/phpunit": "^5.7",
"sminnee/phpunit-mock-objects": "^3.4.5"
},
"extra": {