summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorAdriaan de Groot <groot@kde.org>2019-11-18 17:07:08 +0100
committerAdriaan de Groot <groot@kde.org>2019-11-18 17:07:08 +0100
commit9f90ef637711ac07a3bfaa0c5217302c8b5014d2 (patch)
treea631254a0c071b532ad49164a2c7fad07ae9568f /ci
parent42425e4030125a4c30cacb21a8589cfe7d9f4aa4 (diff)
CI: when pushing translations, mark it with a git tag
Diffstat (limited to 'ci')
-rwxr-xr-xci/txpush.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/ci/txpush.sh b/ci/txpush.sh
index 84166fac6..15b301109 100755
--- a/ci/txpush.sh
+++ b/ci/txpush.sh
@@ -28,9 +28,20 @@ test -f ".tx/config" || { echo "! Not at Calamares top-level" ; exit 1 ; }
test -f "calamares.desktop" || { echo "! Not at Calamares top-level" ; exit 1 ; }
if test "x$1" = "x--no-tx" ; then
+ # tx is the transifex command -- eat its arguments and do nothing
tx() {
echo "Skipped tx $*"
}
+ # txtag is used to tag in git to measure changes -- skip it too
+ txtag() {
+ echo "Skipped tx tagging."
+ }
+else
+ # tx is the regular transifex command
+ # txtag is used to tag in git to measure changes
+ txtag() {
+ git tag -f translations
+ }
fi
### CREATE TRANSLATIONS
@@ -84,3 +95,6 @@ if test -n "$SHARED_PYTHON" ; then
tx set -r calamares.python --source -l en "$POTFILE"
tx push --source --no-interactive -r calamares.python
fi
+
+txtag
+exit 0