Unverified Commit 77d533f8 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(ci) Use custom profile for 1.3 PHPCompatibility

We need to exclude check for random_int as we have a polyfill, and for
 Attribute class as we have our own.

issue #6167
Showing with 3 additions and 1 deletion
+3 -1
......@@ -82,12 +82,14 @@ create_php_compatibility_rapport:
only:
- branches
script:
- test -d ../dev-tools/ && rm -Rf ../dev-tools/
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- find . -type f -name '*.php' -o -name '*.inc' > ./filelist
- git clone --depth 1 https://github.com/PHPCompatibility/PHPCompatibility.git ../PHPCompatibility
- git clone --depth 1 https://github.com/PHPCSStandards/PHPCSUtils.git ../PHPCSUtils
- phpcs --config-set installed_paths /builds/fusiondirectory/PHPCompatibility,/builds/fusiondirectory/PHPCSUtils
- PHP_MIN_VERSION=$(grep PHP_MIN_VERSION include/variables_common.inc| cut -d\' -f4| cut -d"." -f 1-2)
- phpcs --standard=PHPCompatibility --runtime-set testVersion $PHP_MIN_VERSION-7.4 --file-list=./filelist
- phpcs --standard=../dev-tools/php-codesniffer-rules/PHPCompatibility-fd1.3/ruleset.xml --runtime-set testVersion $PHP_MIN_VERSION-7.4 --file-list=./filelist
# Sonar publishing
sonar_publish:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment