From ee807db3802311495f2aedf30207681627adb3ff Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Wed, 28 Feb 2018 09:43:53 +0100 Subject: [PATCH] [Zanata] Add push-locales to CI for branch develop --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1cfc5de..d1540f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,3 +59,13 @@ funky: - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then rsync -a --delete --exclude admin/.stdout.log --exclude admin/.htpasswd --exclude app/inc/config.php --exclude stats/ --exclude error/ public/ ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/; fi only: - funky + +# Push new translations strings to https://trad.framasoft.org +trads: + stage: deploy + image: framasoft/push-trad:latest + script: + - if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then mkdir -p ${HOME}/.config; echo -e "${ZANATA_CONFIG_FRAMABOT}" > ${HOME}/.config/zanata.ini; fi + - if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then make push-locales; fi + only: + - develop