2022-08-26 18:19:40 +00:00
|
|
|
pipeline:
|
2022-08-23 23:22:52 +00:00
|
|
|
build:
|
2022-08-24 00:17:20 +00:00
|
|
|
image: python:3.8-bullseye
|
2022-08-23 23:22:52 +00:00
|
|
|
commands:
|
2022-08-24 00:07:28 +00:00
|
|
|
- apt-get update
|
2022-08-27 11:49:16 +00:00
|
|
|
- apt-get install -y git gettext python3-pip virtualenv python3-babel
|
2022-08-27 11:46:34 +00:00
|
|
|
- virtualenv venv
|
|
|
|
- . venv/bin/activate
|
|
|
|
- pip install Lektor
|
2022-08-26 21:59:26 +00:00
|
|
|
- rm -rf i18n
|
2022-08-26 21:57:51 +00:00
|
|
|
- git clone https://lab.encryptionin.space/Queerscriptors/weblate-website.git i18n
|
2022-08-27 11:33:38 +00:00
|
|
|
- lektor plugin reinstall
|
2022-08-26 18:22:14 +00:00
|
|
|
- lektor build --output-path public
|
2022-08-27 11:24:08 +00:00
|
|
|
- lektor build --output-path public
|
|
|
|
- lektor build --output-path public
|
2022-08-26 20:03:07 +00:00
|
|
|
publish:
|
|
|
|
image: debian
|
|
|
|
commands:
|
2022-08-27 11:55:26 +00:00
|
|
|
- cp -r . /var/www/queerscriptors/
|
2022-08-26 20:03:07 +00:00
|
|
|
volumes:
|
|
|
|
- /var/www/queerscriptors:/var/www/queerscriptors
|
2022-08-26 19:30:09 +00:00
|
|
|
check_l10n_freshness:
|
2022-08-26 20:30:18 +00:00
|
|
|
image: debian:bullseye
|
2022-08-26 20:03:07 +00:00
|
|
|
commands:
|
2022-08-26 20:13:09 +00:00
|
|
|
- apt-get update
|
2022-08-26 20:30:18 +00:00
|
|
|
- apt-get install gettext git python3-dev python3-setuptools i18nspector python3-polib python3-requests ca-certificates apt-utils -y
|
2022-08-26 20:03:07 +00:00
|
|
|
- git clone https://lab.encryptionin.space/Queerscriptors/l10n.git
|
|
|
|
- echo 'lets see if there are any updates in the strings for translation'
|
2022-08-26 20:10:24 +00:00
|
|
|
- l10n/check_po_status.py main
|