From 612bb1c13763e07bd8201b9642af1506f18826ce Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Wed, 4 Sep 2024 07:38:40 +0000 Subject: [PATCH] fix phpstan configuration for gitlab ci, fixes #4559 Closes #4559 Merge request studip/studip!3363 --- .gitlab-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a95a53c907..9e2b2cea0a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -190,7 +190,7 @@ lint-css: - *mkdir-reports - npm install --no-save --no-audit --no-fund - --loglevel=error + --loglevel=error stylelint@^14.9.1 stylelint-config-standard@^26.0.0 stylelint-formatter-gitlab @@ -198,7 +198,7 @@ lint-css: - npx stylelint --cache --cache-location $CACHE_LOCATION - --custom-formatter=node_modules/stylelint-formatter-gitlab + --custom-formatter=node_modules/stylelint-formatter-gitlab --output-file $STYLELINT_CODE_QUALITY_REPORT resources/assets/stylesheets artifacts: @@ -223,12 +223,12 @@ phpstan: - *mkdir-caches - *mkdir-reports - *install-composer - - 'echo "includes:\n - phpstan.neon.dist\n\nparameters:\n tmpDir: $PHPSTAN_CACHE_PATH" > phpstan.neon' + - 'echo -e "includes:\n - phpstan.neon.dist\n\nparameters:\n tmpDir: $PHPSTAN_CACHE_PATH" > phpstan.neon' script: - php - composer/bin/phpstan analyse - --memory-limit=1G - --no-progress + composer/bin/phpstan analyse + --memory-limit=1G + --no-progress --level=$PHPSTAN_LEVEL --error-format=gitlab > $PHPSTAN_CODE_QUALITY_REPORT after_script: @@ -414,7 +414,7 @@ packaging: expire_in: never build_image: - image: + image: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] stage: build -- GitLab