add php7.3 compatibility

This commit is contained in:
Vincent BRIDIER 2023-03-14 11:10:50 +00:00
parent 9eaf00c886
commit 54801f5794
6 changed files with 78 additions and 0 deletions

10
build/build7.3.yml Normal file
View file

@ -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'

24
build/composer7.3.yml Normal file
View file

@ -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

4
lint/lint7.3.yml Normal file
View file

@ -0,0 +1,4 @@
include:
- project: 'ldc-web/shared-ci'
ref: 'main'
file: 'lint/phpcs7.3.yml'

18
lint/phpcs7.3.yml Normal file
View file

@ -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"

15
security/composer7.3.yml Normal file
View file

@ -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

7
security/security7.3.yml Normal file
View file

@ -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'