Commit c4fea0ce 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
...@@ -59,6 +59,7 @@ create_php_code_sniffer_rapport: ...@@ -59,6 +59,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 ../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
- 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
...@@ -105,6 +106,7 @@ fusiondirectory-update-locale: ...@@ -105,6 +106,7 @@ fusiondirectory-update-locale:
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
- ../dev-tools/locale-scripts/fusiondirectory-update-locale -g - ../dev-tools/locale-scripts/fusiondirectory-update-locale -g
...@@ -115,6 +117,7 @@ update-transifex: ...@@ -115,6 +117,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