Commit f5c47d37 authored by bmortier's avatar bmortier
Browse files

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

Draft: Resolve "adapt the ci the new version with variable and no git clone for the phpcompatibility"
Showing with 6 additions and 9 deletions
+6 -9
...@@ -29,9 +29,7 @@ create_php_code_sniffer_rapport: ...@@ -29,9 +29,7 @@ create_php_code_sniffer_rapport:
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../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 - 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 - /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 - /root/.composer/vendor/bin/phpcs --config-set installed_paths /PHPCompatibility,/PHPCSUtils
- 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 --standard=PHPCompatibility --runtime-set testVersion 7.3-7.4 --file-list=./filelist - /root/.composer/vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.3-7.4 --file-list=./filelist
# phpstan # phpstan
...@@ -45,7 +43,6 @@ create_phpstan_rapport: ...@@ -45,7 +43,6 @@ create_phpstan_rapport:
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools - git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
- composer global require phpstan/phpstan=0.12.94 - composer global require phpstan/phpstan=0.12.94
- cp ../dev-tools/phpstan/fusiondirectory/1.4-dev/*.neon . - 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 - /root/.composer/vendor/bin/phpstan analyse -c phpstan.neon
# fusiondirectory-update-locale # fusiondirectory-update-locale
...@@ -78,13 +75,13 @@ build-tarballs: ...@@ -78,13 +75,13 @@ build-tarballs:
only: only:
- 1.4-dev - 1.4-dev
script: script:
- mkdir ../fusiondirectory-1.4/ - mkdir ../fusiondirectory-$VERSION/
- mv ./* ../fusiondirectory-1.4/ - mv ./* ../fusiondirectory-$VERSION/
- mv ../fusiondirectory-1.4/ ./ - mv ../fusiondirectory-$VERSION/ ./
- tar -cvzf fusiondirectory-1.4.tar.gz * - tar -cvzf fusiondirectory-$VERSION.tar.gz *
artifacts: artifacts:
paths: paths:
- fusiondirectory-1.4.tar.gz - fusiondirectory-$VERSION.tar.gz
expire_in: 30d expire_in: 30d
trigger-plugins: 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