Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-08-12 15:58:56 +00:00
parent 796934df00
commit cdf7a1c81e
1 changed files with 4 additions and 4 deletions

View File

@ -22,11 +22,11 @@ synchro-et-tests:
script: script:
- rsync -avzlh * /home/webmaster/site-chalec.org/articles/ - rsync -avzlh * /home/webmaster/site-chalec.org/articles/
- |+ - |+
files= files=""
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || ls *.stl) files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || ls *.stl)
- cd /home/webmaster/site-chalec.org - cd /home/webmaster/site-chalec.org
- |+ - |+
errors= errors=""
for file in $files for file in $files
do do
echo "Test de $file" echo "Test de $file"
@ -42,11 +42,11 @@ deploiement: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully. stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
script: script:
- |+ - |+
files= files=""
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || ls *.stl) files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || ls *.stl)
- cd /home/webmaster/site-chalec.org - cd /home/webmaster/site-chalec.org
- |+ - |+
errors= errors=""
for file in $files for file in $files
do do
echo "Construction de $file" echo "Construction de $file"