Skip to content
Code-Schnipsel Gruppen Projekte
Commit 958ae53c erstellt von Jan Wennrich's avatar Jan Wennrich
Dateien durchsuchen

Merge branch 'dev' into 'next'

Dev

See merge request !71
Übergeordnete 5beff9ed 62d39273
No related branches found
No related tags found
2 Merge Requests!74Next,!71Dev
include:
- project: 'quiqqer/stabilization/semantic-release'
file: '/ci-templates/.gitlab-ci.yml'
ref: dev
---
stages:
- ".pre"
- test
- release
- ".post"
is_merge_allowed:
stage: test
script:
- 'echo "Error: Merging branch $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME directly into
$CI_DEFAULT_BRANCH is not allowed. Please merge branch $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
into next first and from there into $CI_DEFAULT_BRANCH."
'
- exit 1
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
!= "next" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
validate_required_files:
image: bash:5
stage: test
script:
- 'if [ ! -e composer.json ]; then (echo "Error: composer.json does not exist";
exit 1); fi'
- 'if [ ! -e README.md ]; then (echo "Error: README.md does not exist"; exit 1);
fi'
- 'if [ ! -e LICENSE ]; then (echo "Error: LICENSE file does not exist"; exit 1);
fi'
- 'if [ ! -e package.xml ]; then (echo "Error: package.xml does not exist"; exit
1); fi'
rules:
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED"
validate_composer:
image: composer:2
stage: test
script:
- composer validate --no-check-all --strict composer.json
- COMPOSER_TYPE=$(php -r "echo json_decode(file_get_contents('composer.json'))->type;")
- 'if [[ $COMPOSER_TYPE != quiqqer-@(module|plugin|template|application) ]] ; then
(echo "Error: Invalid type $COMPOSER_TYPE in composer.json. Should be quiqqer-module,
quiqqer-plugin, quiqqer-template or quiqqer-application"; exit 1); fi'
rules:
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED"
codestyle_check:
image: composer:2
stage: test
script:
- composer global require squizlabs/php_codesniffer=^3
- "/tmp/vendor/bin/phpcs -n -p --standard=PSR12 --report=full --no-cache --colors
--extensions=php --basepath=$CI_PROJECT_DIR $CI_PROJECT_DIR"
rules:
- if: "$CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED"
allow_failure: true
release:
image: node:18-slim
stage: release
before_script:
- apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- npm install -g semantic-release@^21 git+https://dev.quiqqer.com/quiqqer/stabilization/semantic-release.git#dev
script:
- semantic-release --extends @quiqqer/semantic-release-config
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
- if: "$CI_COMMIT_BRANCH =~ /^(\\d\\.)?\\d.x$/"
......@@ -8,4 +8,4 @@ I'll do
(^.^)
hi
this is a fix!
this is a fix!!!
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren