Commit 0efd47a8 authored by Cédric Krier's avatar Cédric Krier
Browse files

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.
parent 6efb7bc9d60f
Pipeline #61581 passed with stages
in 2 minutes and 55 seconds
......@@ -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
......
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