gitlab-ci: cleaner way to config languages for gitlab-ci builds

parent 1044256d
......@@ -63,7 +63,9 @@ test:
- public
script:
- *setup_for_jekyll
- sed -i "s/^\(languages. \).*/\1[ bo, en, fa, zh_Hans ]/" _config.yml
# use the 'gitlab ci' subset of languages
- sed -i 's,^languages:,ignored_languages:,' _config.yml
- sed -i 's,^gitlab_ci_languages:,languages:,' _config.yml
- ./tools/check-format-strings.py
# This is where GitLab pages will deploy to by default (e.g. "https://fdroid.gitlab.io/fdroid-website")
# so we need to make sure that the Jekyll configuration understands this.
......
......@@ -29,6 +29,8 @@ fdroid-repo: https://f-droid.org/repo
# translated across the whole project. Check with this script:
# ./tools/check-language-status.sh
languages: [ bo, en, de, es, fr, tr, uk, zh_Hans, zh_Hant ]
# the languages built and deployed when run with gitlab-ci
gitlab_ci_languages: [ bo, en, fa, zh_Hans ]
# Specifying the default language as "_" forces polyglot to generate a
# en/ subdirectory too (with correct links). See
# https://github.com/untra/polyglot/issues/60
......
Markdown is supported
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