From 229c5004a5f3337263ba943194072801ce6b6d38 Mon Sep 17 00:00:00 2001 From: Thomas Flori <t.flori@sportradar.com> Date: Wed, 3 Apr 2024 11:35:05 +0200 Subject: [PATCH] use psr2 for now and update readme --- .gitlab-ci.yml | 30 +++++++++++++++--------------- README.md | 5 ++--- composer.json | 2 +- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce41b30..1ec239d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,20 +59,20 @@ phpunit-old: - 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: -# - php vendor/bin/phpmd src,tests ansi ruleset.xml +#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 @@ -87,7 +87,7 @@ style: # basically we are ignoring the composer.lock in tests - composer update --no-interaction --ansi script: - - php vendor/bin/phpcs --colors --standard=PSR12 src tests + - composer run code-style packagist: stage: publish diff --git a/README.md b/README.md index 1c7d53a..29b97fe 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # tflori/verja -[](https://github.com/tflori/verja/actions/workflows/push.yml) -[](https://codeclimate.com/github/tflori/verja/test_coverage) -[](https://codeclimate.com/github/tflori/verja/maintainability) +[](https://gitlab.w00tserver.org/tflori/verja/-/pipelines) +[](https://gitlab.w00tserver.org/tflori/verja/-/pipelines) [](https://packagist.org/packages/tflori/verja) [](https://packagist.org/packages/tflori/verja) [](https://packagist.org/packages/tflori/verja) diff --git a/composer.json b/composer.json index fecde74..d31c4ec 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ } }, "scripts": { - "code-style": "phpcs --colors --standard=PSR12 src tests", + "code-style": "phpcs --colors --standard=PSR2 src tests", "code-quality": "phpmd src,tests ansi ruleset.xml", "test": "phpunit --stderr", "coverage": "phpunit --stderr --coverage-text" -- GitLab