From 54801f5794fd5766eb2eb5a3da006e67e7c191a9 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Tue, 14 Mar 2023 11:10:50 +0000 Subject: [PATCH] add php7.3 compatibility --- build/build7.3.yml | 10 ++++++++++ build/composer7.3.yml | 24 ++++++++++++++++++++++++ lint/lint7.3.yml | 4 ++++ lint/phpcs7.3.yml | 18 ++++++++++++++++++ security/composer7.3.yml | 15 +++++++++++++++ security/security7.3.yml | 7 +++++++ 6 files changed, 78 insertions(+) create mode 100644 build/build7.3.yml create mode 100644 build/composer7.3.yml create mode 100644 lint/lint7.3.yml create mode 100644 lint/phpcs7.3.yml create mode 100644 security/composer7.3.yml create mode 100644 security/security7.3.yml diff --git a/build/build7.3.yml b/build/build7.3.yml new file mode 100644 index 0000000..1b49291 --- /dev/null +++ b/build/build7.3.yml @@ -0,0 +1,10 @@ +include: + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'build/composer7.3.yml' + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'build/npm.yml' + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'build/docker.yml' \ No newline at end of file diff --git a/build/composer7.3.yml b/build/composer7.3.yml new file mode 100644 index 0000000..9d69fb2 --- /dev/null +++ b/build/composer7.3.yml @@ -0,0 +1,24 @@ +composer-build: + stage: build + image: $CI_REGISTRY/ldc-web/projets/ldc-web-images-docker/ldcweb-qa:php7.3-1.0 + before_script: + - composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD + cache: + paths: + - vendor/ + script: + - composer install --no-dev --optimize-autoloader --classmap-authoritative + artifacts: + expose_as: 'vendor' + paths: + - vendor + allow_failure: false + dependencies: + - composer-security + needs: + - job: composer-security + optional: true + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH == "trunk" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" + - if: $CI_COMMIT_TAG != null \ No newline at end of file diff --git a/lint/lint7.3.yml b/lint/lint7.3.yml new file mode 100644 index 0000000..2fc2277 --- /dev/null +++ b/lint/lint7.3.yml @@ -0,0 +1,4 @@ +include: + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'lint/phpcs7.3.yml' \ No newline at end of file diff --git a/lint/phpcs7.3.yml b/lint/phpcs7.3.yml new file mode 100644 index 0000000..9e6b267 --- /dev/null +++ b/lint/phpcs7.3.yml @@ -0,0 +1,18 @@ +phpcs: + stage: lint + image: $CI_REGISTRY/ldc-web/projets/ldc-web-images-docker/ldcweb-qa:php7.3-1.0 + before_script: + - composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD + - composer install + script: + - vendor/bin/phpcs --report=junit --report-file=phpcs-report.xml + artifacts: + when: on_failure + expose_as: 'phpcs' + paths: + - phpcs-report.xml + reports: + junit: phpcs-report.xml + allow_failure: false + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" diff --git a/security/composer7.3.yml b/security/composer7.3.yml new file mode 100644 index 0000000..9b5f1d0 --- /dev/null +++ b/security/composer7.3.yml @@ -0,0 +1,15 @@ +composer-security: + stage: security + image: $CI_REGISTRY/ldc-web/projets/ldc-web-images-docker/ldcweb-qa:php7.3-1.0 + script: + - local-php-security-checker --format=json --path=./composer.lock > composer-security-checker-report.json + artifacts: + when: on_failure + expose_as: 'composer-security-checker' + paths: + - composer-security-checker-report.json + allow_failure: true + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH == "trunk" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" + - if: $CI_COMMIT_TAG != null \ No newline at end of file diff --git a/security/security7.3.yml b/security/security7.3.yml new file mode 100644 index 0000000..968c864 --- /dev/null +++ b/security/security7.3.yml @@ -0,0 +1,7 @@ +include: + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'security/composer7.3.yml' + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'security/npm.yml' \ No newline at end of file