From e206f6c202c90ff7ea7687bbb518a288737168cd Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sat, 9 Jun 2018 14:19:15 -0600 Subject: [PATCH] travis: fix tx push (again) --- .travis/transifex/docker.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.travis/transifex/docker.sh b/.travis/transifex/docker.sh index 9ca97e222..88913ba9e 100644 --- a/.travis/transifex/docker.sh +++ b/.travis/transifex/docker.sh @@ -9,7 +9,21 @@ echo -e "\e[1m\e[33mInstalling dependencies...\e[0m" apk update apk add build-base cmake python3-dev qt5-qttools-dev qt5-qtmultimedia-dev -pip3 install transifex-client +pip3 install --upgrade pip transifex-client + +cat << 'EOF' > /usr/bin/tx +#!/usr/bin/python3 + +# -*- coding: utf-8 -*- +import re +import sys + +from txclib.cmdline import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) +EOF echo -e "\e[1m\e[33mBuild tools information:\e[0m" cmake --version