Commit df56f95b authored by bmortier's avatar bmortier
Browse files

Merge branch...

Merge branch '6258-adapt-the-ci-the-new-version-with-variable-and-no-git-clone-for-the-phpcompatibility' into '1.4-dev'

Draft: Resolve "adapt the ci the new version with variable and no git clone for the phpcompatibility"

Closes #6258

See merge request fusiondirectory/fd!1009
Showing with 6 additions and 9 deletions
+6 -9
......@@ -29,9 +29,7 @@ create_php_code_sniffer_rapport:
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- find . -type f -name '*.php' -o -name '*.inc' > ./filelist
- /root/.composer/vendor/bin/phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist
- git clone --depth 1 https://gitlab.fusiondirectory.org/php-tools/PHPCompatibility.git ../PHPCompatibility
- git clone --depth 1 https://gitlab.fusiondirectory.org/php-tools/PHPCSUtils.git ../PHPCSUtils
- /root/.composer/vendor/bin/phpcs --config-set installed_paths /builds/fusiondirectory/PHPCompatibility,/builds/fusiondirectory/PHPCSUtils
- /root/.composer/vendor/bin/phpcs --config-set installed_paths /PHPCompatibility,/PHPCSUtils
- /root/.composer/vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.3-7.4 --file-list=./filelist
# phpstan
......@@ -45,7 +43,6 @@ create_phpstan_rapport:
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- composer global require phpstan/phpstan=0.12.94
- cp ../dev-tools/phpstan/fusiondirectory/1.4-dev/*.neon .
- composer global require phpstan/phpstan=0.12.94
- /root/.composer/vendor/bin/phpstan analyse -c phpstan.neon
# fusiondirectory-update-locale
......@@ -78,13 +75,13 @@ build-tarballs:
only:
- 1.4-dev
script:
- mkdir ../fusiondirectory-1.4/
- mv ./* ../fusiondirectory-1.4/
- mv ../fusiondirectory-1.4/ ./
- tar -cvzf fusiondirectory-1.4.tar.gz *
- mkdir ../fusiondirectory-$VERSION/
- mv ./* ../fusiondirectory-$VERSION/
- mv ../fusiondirectory-$VERSION/ ./
- tar -cvzf fusiondirectory-$VERSION.tar.gz *
artifacts:
paths:
- fusiondirectory-1.4.tar.gz
- fusiondirectory-$VERSION.tar.gz
expire_in: 30d
trigger-plugins:
......
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