mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #131 from creative-commoners/pulls/4/php8
MNT PHP8 support
This commit is contained in:
commit
466ec19b60
@ -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
|
||||||
|
@ -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": [
|
||||||
|
Loading…
Reference in New Issue
Block a user