Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • tflori/verja
1 result
Show changes
Commits on Source (3)
stages:
- test
- publish
phpunit:
stage: test
needs: []
parallel:
matrix:
- PHP_VERSION: ['7.3', '7.4', '8.0', '8.1', '8.2']
image: iras/php-composer:${PHP_VERSION}
cache:
key: php-dependencies-${PHP_VERSION}
paths:
- ./storage/composer
before_script:
- export COMPOSER_CACHE_DIR=$(pwd)/storage/composer
# basically we are ignoring the composer.lock in tests
- composer update --no-interaction --ansi
script:
- php -dzend_extension=xdebug.so -dxdebug.mode=coverage
vendor/bin/phpunit -c phpunit.xml --color=always
--coverage-text --coverage-cobertura=coverage/cobertura.xml
--coverage-html=coverage/html | tee /tmp/phpunit.out
- sed -r 's~\x01?(\x1B\(B)?\x1B\[([0-9;]*)?[JKmsu]\x02?~~g' /tmp/phpunit.out|grep '^ Lines'
artifacts:
paths:
- coverage/html
reports:
coverage_report:
coverage_format: cobertura
path: coverage/cobertura.xml
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
phpunit-old:
stage: test
needs: []
parallel:
matrix:
- PHP_VERSION: ['7.1', '7.2']
image: iras/php-composer:${PHP_VERSION}
cache:
key: php-dependencies-${PHP_VERSION}
paths:
- ./storage/composer
before_script:
- export COMPOSER_CACHE_DIR=$(pwd)/storage/composer
# basically we are ignoring the composer.lock in tests
- composer update --no-interaction --ansi
script:
- php -dzend_extension=xdebug.so -dxdebug.mode=coverage
vendor/bin/phpunit -c phpunit.xml --color=always
--coverage-text
--coverage-html=coverage/html | tee /tmp/phpunit.out
- sed -r 's~\x01?(\x1B\(B)?\x1B\[([0-9;]*)?[JKmsu]\x02?~~g' /tmp/phpunit.out|grep '^ Lines'
artifacts:
paths:
- coverage/html
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
#quality:
# stage: test
# needs: [ ]
# image: iras/php-composer:8.2
# cache:
# key: php-dependencies-8.2
# paths:
# - ./storage/composer
# before_script:
# - export COMPOSER_CACHE_DIR=$(pwd)/storage/composer
# # basically we are ignoring the composer.lock in tests
# - composer update --no-interaction --ansi
# script:
# - composer run code-quality
style:
stage: test
needs: []
image: iras/php-composer:8.2
cache:
key: php-dependencies-8.2
paths:
- ./storage/composer
before_script:
- export COMPOSER_CACHE_DIR=$(pwd)/storage/composer
# basically we are ignoring the composer.lock in tests
- composer update --no-interaction --ansi
script:
- composer run code-style
packagist:
stage: publish
needs: [phpunit]
image: alpine:3.18
before_script:
- apk add --no-cache curl
script:
- curl -XPOST -H'content-type:application/json'
'https://packagist.org/api/update-package?username=tflori&apiToken='${PACKAGIST_API_TOKEN}
-d'{"repository":{"url":"https://gitlab.w00tserver.org/tflori/nb-sessions.git"}}'
# tflori/verja
[![.github/workflows/push.yml](https://github.com/tflori/verja/actions/workflows/push.yml/badge.svg)](https://github.com/tflori/verja/actions/workflows/push.yml)
[![Test Coverage](https://api.codeclimate.com/v1/badges/e07f4d5da0789699e27c/test_coverage)](https://codeclimate.com/github/tflori/verja/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/e07f4d5da0789699e27c/maintainability)](https://codeclimate.com/github/tflori/verja/maintainability)
[![Build Status](https://gitlab.w00tserver.org/tflori/verja/badges/master/pipeline.svg)](https://gitlab.w00tserver.org/tflori/verja/-/pipelines)
[![Coverage Status](https://gitlab.w00tserver.org/tflori/verja/badges/master/coverage.svg)](https://gitlab.w00tserver.org/tflori/verja/-/pipelines)
[![Latest Stable Version](https://poser.pugx.org/tflori/verja/v/stable.svg)](https://packagist.org/packages/tflori/verja)
[![Total Downloads](https://poser.pugx.org/tflori/verja/downloads.svg)](https://packagist.org/packages/tflori/verja)
[![License](https://poser.pugx.org/tflori/verja/license.svg)](https://packagist.org/packages/tflori/verja)
......
......@@ -9,9 +9,10 @@
"require-dev": {
"phpunit/phpunit": "*",
"tflori/phpunit-printer": "*",
"mockery/mockery": "^1.1",
"squizlabs/php_codesniffer": "^3.5",
"mockery/mockery": "*",
"squizlabs/php_codesniffer": "*",
"tflori/dependency-injector": "^2.2",
"phpmd/phpmd": "*",
"nesbot/carbon": "^2.53"
},
"autoload": {
......@@ -25,8 +26,9 @@
}
},
"scripts": {
"code-style": "phpcs --standard=PSR2 src && phpcs --standard=PSR2 --ignore=Examples tests",
"test": "phpunit",
"coverage": "phpunit --coverage-text"
"code-style": "phpcs --colors --standard=PSR2 src tests",
"code-quality": "phpmd src,tests ansi ruleset.xml",
"test": "phpunit --stderr",
"coverage": "phpunit --stderr --coverage-text"
}
}