commit 78d42c59b96319c51c57183137db9c340aa0d25a Author: emma peel emma.peel@riseup.net Date: Fri Apr 23 15:49:23 2021 +0000
move l10n checks to their own stage, only run if there are changes. remove lego checkout because now we do it through the GIT_SUBMODULE_STRATEGY variable. leave the public dir to save build time --- .gitlab-ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5623a36..3653d64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,23 +27,24 @@ pages: - pip3 install wheel - pip3 install lektor - echo 'checking out translations' - - rm -rf i18n - git clone https://git.torproject.org/translation.git i18n - cd i18n && git checkout tbmanual-contentspot && cd .. - - echo 'checking out lego' - - rm -rf lego - - git clone https://git.torproject.org/project/web/lego.git lego - - cd lego && git checkout master && git pull && cd .. - - rm -rf public script: - echo 'building lektor 3 times to get translations in place' - lektor build --output-path public && lektor build --output-path public && lektor build --output-path public - - git clone https://gitlab.torproject.org/tpo/community/l10n.git - - l10n/bin/check_markdown_links.py i18n/ - artifacts: paths: - public - i18n only: - translations + +check_l10n: + stage: test + script: + - git clone https://gitlab.torproject.org/tpo/community/l10n.git + - pip3 install polib + - l10n/bin/check_markdown_links.py i18n/ + rules: + - changes: + - i18n/*
tor-commits@lists.torproject.org