aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-01-05 09:17:55 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-01-05 09:17:55 +0000
commit1eb58c143460343ec2a5cda7ef11d8cc39c07529 (patch)
tree07337ae554c522ab5cf24b5f14fcf6def30966fc /.gitlab-ci.yml
parent4a2977016d1a589c9f05ce0721afc6dd433a9454 (diff)
use php 7.4 as minimum version and adjust system accordingly, fixes #3123
Closes #3123 Merge request studip/studip!2110
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml33
1 files changed, 32 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1b6b6af..7b6f7bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: studip/studip:tests-php7.2
+image: studip/studip:tests-php8.2
variables:
FF_NETWORK_PER_BUILD: 1
@@ -110,6 +110,36 @@ lint-php:
reports:
codequality: $PHPLINT_CODE_QUALITY_REPORT
+lint-php-7.4:
+ image: studip/studip:tests-php8.2
+ stage: checks
+ needs: [build-composer]
+ variables:
+ CACHE_LOCATION: $CACHE_DIR/phplint-cache
+ PHPLINT_JSON_REPORT: $REPORT_DIR/phplint-report-7.4.json
+ PHPLINT_CODE_QUALITY_REPORT: $REPORT_DIR/phplint-codequality-7.4.json
+ interruptible: true
+ cache:
+ - *composer-cache
+ - key: "$CI_JOB_NAME_SLUG:$CI_COMMIT_REF_SLUG"
+ paths:
+ - $CACHE_LOCATION
+ before_script:
+ - *mkdir-caches
+ - *mkdir-reports
+ - *install-composer
+ script:
+ - COMPOSER_MEMORY_LIMIT=-1
+ composer exec phplint
+ --
+ --json $PHPLINT_JSON_REPORT
+ --cache=$CACHE_LOCATION
+ after_script:
+ - ./.gitlab/scripts/convert-phplint-report $PHPLINT_JSON_REPORT > $PHPLINT_CODE_QUALITY_REPORT
+ artifacts:
+ reports:
+ codequality: $PHPLINT_CODE_QUALITY_REPORT
+
lint-js:
stage: checks
needs: []
@@ -229,6 +259,7 @@ test-unit:
test-jest:
stage: test
needs: [lint-js]
+ image: $NODE_IMAGE
variables:
JS_TEST_REPORT: $REPORT_DIR/jest.xml
cache: *npm-cache