Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorJan Klass <kissaki@posteo.de>2021-03-03 02:09:31 +0300
committerJan Klass <kissaki@posteo.de>2021-03-03 21:09:15 +0300
commitdf79c632e0649e1ac04276b087978dca2afed6c5 (patch)
tree6a4da6a0e95f3a4e6f9328cd6fd308657377a096 /.ci
parent310212c516d550b9bc63b1bd7c2be8fe8aba2f3d (diff)
MAINT: Replace updatetranslations.sh with updatetranslations.py script
The bash script is not platform independent. The python script is. I invested way too much time trying to run the sh script on WSL (Windows Subsystem for Linux), installing Qt packages, but in the end still failing. I also implemented a bat script calling lupdate with the same parameters as the sh script, but having one platform independent script is preferable to having two separate scripts for the same activity. The python script will call lupdate to update the ts files like the sh script did, and commit the changes if any were made. Furthermore it checks that the ts files have no local changes before running, and after updating reset the git index, add commit the files. The reset operation is added so only the ts files are being committed. Contrary to the previous script this one disables all heuristics so those can be applied as separate changes, so they will be visible.
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/azure-pipelines/assertNoTranslationChanges.sh4
-rwxr-xr-x.ci/azure-pipelines/install-environment_linux_translations.bash2
2 files changed, 3 insertions, 3 deletions
diff --git a/.ci/azure-pipelines/assertNoTranslationChanges.sh b/.ci/azure-pipelines/assertNoTranslationChanges.sh
index 171da997a..0a11bcb32 100755
--- a/.ci/azure-pipelines/assertNoTranslationChanges.sh
+++ b/.ci/azure-pipelines/assertNoTranslationChanges.sh
@@ -8,7 +8,7 @@
set -e
# Get path to the updatetranslations script
-updateScript="$BUILD_SOURCESDIRECTORY/scripts/updatetranslations.sh"
+updateScript="$BUILD_SOURCESDIRECTORY/scripts/updatetranslations.py"
# Get current commit hash
oldHash=`git rev-parse HEAD`
@@ -18,7 +18,7 @@ git config user.name "CI"
git config user.email "ci@mumble.info"
# Execute updatetranslations that'll commit any translation changes
-$updateScript > /dev/null
+python $updateScript
echo
# Ger new commit hash
diff --git a/.ci/azure-pipelines/install-environment_linux_translations.bash b/.ci/azure-pipelines/install-environment_linux_translations.bash
index 1e20cd7a7..3b038af9d 100755
--- a/.ci/azure-pipelines/install-environment_linux_translations.bash
+++ b/.ci/azure-pipelines/install-environment_linux_translations.bash
@@ -10,4 +10,4 @@ set -x
sudo apt-get update
-sudo apt-get -y install qttools5-dev-tools qt5-qmake
+sudo apt-get -y install qttools5-dev-tools