Skip to content
Snippets Groups Projects
Commit 2f1cd5d8 authored by Ziwei Wang's avatar Ziwei Wang Committed by Adrien Béraud
Browse files

Fix build

It now pulls translations before building html
The token is used for pulling. The value is provided in Jenkins config

Change-Id: I1aa41a7f4f10420ce465a81fba85c8c477b5c4cb
parent 7210a72e
No related branches found
No related tags found
No related merge requests found
......@@ -55,11 +55,15 @@ po: gettext po-pre
tx-pull:
# $(TX_CMD) pull -aft --minimum-perc=1
$(TX_CMD) pull -ftl $(LANGS_commasep)
# e.g. make tx-pull TRANSIFEX_API_TOKEN=<token_value>
$(TX_CMD) --token $(TRANSIFEX_API_TOKEN) pull -ftl $(LANGS_commasep)
tx-push:
$(TX_CMD) push -s
$(TX_CMD) --token $(TRANSIFEX_API_TOKEN) push -s
clean:
@echo "Removing $(OUT)"
rm -r $(OUT)
deploy:
rsync $(RSYNC_OPTS) "$(OUT)"/html/ "$(RSYNC_DEST)"
for l in $(LANGS); do \
......
......@@ -17,7 +17,11 @@ RUN groupadd -g "${GID}" jenkins && \
USER jenkins
RUN mkdir -p "/home/jenkins/.local/bin" && \
cd "/home/jenkins/.local/bin" && \
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
ENV PATH="/home/jenkins/.local/bin:${PATH}"
RUN pip3 install --upgrade sphinx==5.3.0
RUN pip3 install sphinx-intl==2.1.0 sphinx-rtd-theme==1.0.0 myst-parser==0.18.0
RUN pip3 install --upgrade sphinx==6.2.1
RUN pip3 install sphinx-intl==2.1.0 sphinx-rtd-theme==1.2.2 myst-parser==2.0.0
......@@ -82,6 +82,8 @@ pipeline {
stage('Build docs') {
run_cmd("""
cd ${REPO_NAME}
make gettext
make tx-pull TRANSIFEX_API_TOKEN=${TRANSIFEX_API_TOKEN}
make html || true
""")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment