|
|
|
@ -3,7 +3,7 @@ name: build
|
|
|
|
|
on: [push, pull_request] |
|
|
|
|
|
|
|
|
|
env: |
|
|
|
|
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader" |
|
|
|
|
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi" |
|
|
|
|
PHPUNIT_EXCLUDE_GROUP: mssql,oci,wincache,xcache,zenddata,cubrid |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
@ -86,15 +86,15 @@ jobs:
|
|
|
|
|
- name: Install dependencies |
|
|
|
|
run: composer update $DEFAULT_COMPOSER_FLAGS |
|
|
|
|
- name: PHP Unit tests for PHP 7.1 |
|
|
|
|
run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group oci,wincache,xcache,zenddata,cubrid |
|
|
|
|
run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group oci,wincache,xcache,zenddata,cubrid --colors=always |
|
|
|
|
if: matrix.php == '7.1' |
|
|
|
|
- name: PHP Unit tests for PHP 7.2 - 7.4 |
|
|
|
|
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP |
|
|
|
|
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always |
|
|
|
|
env: |
|
|
|
|
PHPUNIT_EXCLUDE_GROUP: oci,wincache,xcache,zenddata,cubrid |
|
|
|
|
if: matrix.php == '7.4' || matrix.php == '7.3' || matrix.php == '7.2' |
|
|
|
|
- name: PHP Unit tests for PHP 5.4 - 7.0 |
|
|
|
|
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP |
|
|
|
|
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always |
|
|
|
|
if: matrix.php == '7.0' || matrix.php == '5.6' || matrix.php == '5.5' || matrix.php == '5.4' |
|
|
|
|
- name: Code coverage |
|
|
|
|
run: | |
|
|
|
|