|
|
@ -52,6 +52,9 @@ test:
|
|
|
|
when: always
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- ./coverage/
|
|
|
|
- ./coverage/
|
|
|
|
|
|
|
|
- ./unittests.xml
|
|
|
|
|
|
|
|
reports:
|
|
|
|
|
|
|
|
junit: ./unittests.xml
|
|
|
|
coverage: '/^\s*Lines:\s*(\d+(?:\.\d+)?%)/'
|
|
|
|
coverage: '/^\s*Lines:\s*(\d+(?:\.\d+)?%)/'
|
|
|
|
before_script:
|
|
|
|
before_script:
|
|
|
|
- apk add ${PHPIZE_DEPS} && pecl install xdebug && docker-php-ext-enable xdebug
|
|
|
|
- apk add ${PHPIZE_DEPS} && pecl install xdebug && docker-php-ext-enable xdebug
|
|
|
@ -62,8 +65,8 @@ test:
|
|
|
|
- composer --no-ansi install --dev
|
|
|
|
- composer --no-ansi install --dev
|
|
|
|
- ./bin/migrate
|
|
|
|
- ./bin/migrate
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit -v --colors=never --coverage-text --coverage-html "${HOMEDIR}/coverage/"
|
|
|
|
- vendor/bin/phpunit -v --colors=never --coverage-text --coverage-html "${HOMEDIR}/coverage/" --log-junit "${HOMEDIR}/unittests.xml"
|
|
|
|
- ./bin/migrate down
|
|
|
|
- bin/migrate down
|
|
|
|
|
|
|
|
|
|
|
|
release-image:
|
|
|
|
release-image:
|
|
|
|
<<: *docker_definition
|
|
|
|
<<: *docker_definition
|
|
|
|