Browse Source

Add colors to CI (#18316)

tags/2.0.39
Alexander Makarov 4 years ago committed by GitHub
parent
commit
7a8d32e176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .github/workflows/build.yml
  2. 4
      .github/workflows/ci-mysql.yml
  3. 4
      .github/workflows/ci-pgsql.yml
  4. 2
      package.json

8
.github/workflows/build.yml

@ -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: |

4
.github/workflows/ci-mysql.yml

@ -74,7 +74,7 @@ jobs:
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Run mysql tests with phpunit
run: vendor/bin/phpunit --group mysql
run: vendor/bin/phpunit --group mysql --colors=always

4
.github/workflows/ci-pgsql.yml

@ -78,7 +78,7 @@ jobs:
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Run pgsql tests with phpunit
run: vendor/bin/phpunit --group pgsql
run: vendor/bin/phpunit --group pgsql --colors=always

2
package.json

@ -16,7 +16,7 @@
"sinon": "^1.17.6"
},
"scripts": {
"test": "./node_modules/.bin/mocha tests/js/tests/*.test.js --timeout 0"
"test": "./node_modules/.bin/mocha tests/js/tests/*.test.js --timeout 0 --colors"
},
"repository": {
"type": "git",

Loading…
Cancel
Save