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
This commit is contained in:
parent
7210a72ec6
commit
2f1cd5d8d1
8
Makefile
8
Makefile
|
@ -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
|
||||
""")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue