summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2022-05-11 09:40:15 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2022-05-15 09:34:58 +0000
commitf31afe465fce8ff2043fd9fa245dcae29287eff3 (patch)
tree0686e5c3863af22a748b97f7a58915df5842cc36 /.gitlab-ci.yml
parent7865d1155dacfef3c262fe7faa667a7f54f05174 (diff)
downloadgstreamer-f31afe465fce8ff2043fd9fa245dcae29287eff3.tar.gz
ci: set the code page of powershell to utf-8
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2397>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bcaf62ee74..bcc30057b6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -394,6 +394,13 @@ build clang fedora x86_64:
- changes:
*modules_changes
script:
+ # Make sure powershell exits on errors
+ # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
+ - $ErrorActionPreference = "Stop"
+
+ # Set the code page to UTF-8
+ - chcp 65001
+
- ci/scripts/handle-subprojects-cache.py subprojects/
# For some reason, options are separated by newline instead of space, so we
# have to replace them first.
@@ -446,6 +453,9 @@ build msys2 :
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
- $ErrorActionPreference = "Stop"
+ # Set the code page to UTF-8
+ - chcp 65001
+
# Configure MSYS2 to use the UCRT64 environment, start in the same directory
# and inherit PATH
- $env:MSYSTEM = "UCRT64"