diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12d0183..e919f63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,6 +24,7 @@ synchro-et-tests: - |+ files="" files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl") + if [ -z "$CI_COMMIT_SHA" ]; then files=$(find . -name "*.stl"); fi echo -e "Test de : \n $files" - cd /home/webmaster/site-a-lec.org - |+ @@ -51,6 +52,7 @@ deploiement: # This job runs in the deploy stage. - |+ files="" files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl") + if [ -z "$CI_COMMIT_SHA" ]; then files=$(find . -name "*.stl"); fi - cd /home/webmaster/site-a-lec.org - |+ errors=0