Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
0efd47a8 by Cédric Krier at 2023-01-15T21:23:43+01:00
Do not check documentation nor run test on tag

The tag pipeline has CI_COMMIT_SHA filled but changes rules are always true.
Thus the documentation checks and tests are run for all modules.
So the changes rules should be evaluated if CI_COMMIT_TAG is empty.
- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -61,7 +61,8 @@
       python -m sphinx -T -E -W -n -b linkcheck ${DOC_DIR} _build;
       fi
   rules:
-    - changes:
+    - if: $CI_COMMIT_TAG == null
+      changes:
         - ${PACKAGE}/${DOC_DIR}/**/*
         - ${PACKAGE}/tryton.cfg
         - ${PACKAGE}/CHANGELOG
@@ -65,6 +66,8 @@
         - ${PACKAGE}/${DOC_DIR}/**/*
         - ${PACKAGE}/tryton.cfg
         - ${PACKAGE}/CHANGELOG
+      when: on_success
+    - when: never
 
 check-doc-readthedocs:
   extends: .check-doc
@@ -72,5 +75,6 @@
     PACKAGE: readthedocs
     DOC_DIR: .
   rules:
-    - changes:
+    - if: $CI_COMMIT_TAG == null
+      changes:
         - ${PACKAGE}/**/*
@@ -76,4 +80,6 @@
         - ${PACKAGE}/**/*
+      when: on_success
+    - when: never
 
 .check-code:
   extends: .check
@@ -108,7 +114,7 @@
 .test:
   stage: test
   rules:
-    - if: $CI_COMMIT_SHA
+    - if: $CI_COMMIT_TAG == null
       changes:
         - ${PACKAGE}/**/*
       when: on_success



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/0efd47a8736fc18b4c362b86a5ddd1a59b812305

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/0efd47a8736fc18b4c362b86a5ddd1a59b812305
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to