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: include:
# Core php tests # Core php tests
- php: 7.1 - 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 - php: 7.2
env: DB=MYSQL PHPUNIT_TEST=framework env: DB=MYSQL PHPUNIT_TEST=framework
- php: 7.3 - php: 7.3
env: DB=PGSQL PHPUNIT_TEST=core env: DB=PGSQL PHPUNIT_TEST=core
- php: 7.4 - php: 7.4
env: DB=MYSQL PHPUNIT_TEST=core env: DB=MYSQL PHPUNIT_TEST=core
- php: nightly
env: DB=MYSQL PHPUNIT_TEST=core COMPOSER_ARG=--ignore-platform-reqs
# admin php tests # admin php tests
- php: 7.1 - 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 - php: 7.2
env: DB=PGSQL PHPUNIT_TEST=admin env: DB=PGSQL PHPUNIT_TEST=admin
- php: 7.4 - php: 7.4
env: DB=MYSQL PHPUNIT_TEST=admin env: DB=MYSQL PHPUNIT_TEST=admin
- php: nightly
env: DB=MYSQL PHPUNIT_TEST=admin COMPOSER_ARG=--ignore-platform-reqs
# behat tests # behat tests
- php: 7.1 - php: 7.1
env: DB=MYSQL BEHAT_TEST="@framework" 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 ]]; 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 [[ $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 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 update --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile $COMPOSER_ARG; 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-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile --no-dev $COMPOSER_ARG; fi;
# Start behat services # Start behat services
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then mkdir artifacts; fi - if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then mkdir artifacts; fi

View File

@ -17,5 +17,5 @@ default:
browser_name: chrome browser_name: chrome
SilverStripe\BehatExtension\Extension: SilverStripe\BehatExtension\Extension:
bootstrap_file: vendor/silverstripe/cms/tests/behat/serve-bootstrap.php 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 retry_seconds: 4 # default is 2

View File

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