Commit 1b842ff8 authored by Jonathan Swaelens's avatar Jonathan Swaelens
Browse files

:ambulance: fix(gitab-ci): Remove dev-tools directory before clone if it exist

Remove dev-tools directory before clone if it exist
Showing with 3 additions and 0 deletions
+3 -0
...@@ -71,6 +71,7 @@ create_php_code_sniffer_rapport: ...@@ -71,6 +71,7 @@ create_php_code_sniffer_rapport:
only: only:
- branches - branches
script: script:
- test -d ../dev-tools/ && rm -Rf ../dev-tools/
- git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git -b 1.3 ../dev-tools - git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git -b 1.3 ../dev-tools
- find . -type f -name '*.php' -o -name '*.inc' > ./filelist - find . -type f -name '*.php' -o -name '*.inc' > ./filelist
- phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist - phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist
...@@ -117,6 +118,7 @@ fusiondirectory-update-locale: ...@@ -117,6 +118,7 @@ fusiondirectory-update-locale:
only: only:
- branches - branches
script: script:
- test -d ../dev-tools/ && rm -Rf ../dev-tools/
- 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
- ../dev-tools/locale-scripts/fusiondirectory-update-locale -g - ../dev-tools/locale-scripts/fusiondirectory-update-locale -g
...@@ -127,6 +129,7 @@ update-transifex: ...@@ -127,6 +129,7 @@ update-transifex:
only: only:
- /^1.*$/ - /^1.*$/
script: script:
- test -d ../dev-tools/ && rm -Rf ../dev-tools/
- 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
- echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc - echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc
- tx pull -a -f - tx pull -a -f
......
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