Export CI_ICU_PATH variables on all windows templates
authorJędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Thu, 26 May 2016 12:40:35 +0000 (14:40 +0200)
committerFrederik Gladhorn <frederik.gladhorn@qt.io>
Mon, 30 May 2016 14:08:22 +0000 (14:08 +0000)
That is needed to change provisioning way in Coin, as currently it
depends on variables hard-coded in Coin agent.

Change-Id: I15068bec57dd9d67be05ef753d566b456fb8a2fc
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
coin/provisioning/common/icu.ps1 [new file with mode: 0644]
coin/provisioning/qtci-windows-10-x86/icu.ps1 [new file with mode: 0644]
coin/provisioning/qtci-windows-10-x86_64/icu.ps1 [new file with mode: 0644]
coin/provisioning/qtci-windows-7-x86/icu.ps1 [new file with mode: 0644]
coin/provisioning/qtci-windows-8-x86/icu.ps1 [new file with mode: 0644]
coin/provisioning/qtci-windows-8-x86_64/icu.ps1 [new file with mode: 0644]

diff --git a/coin/provisioning/common/icu.ps1 b/coin/provisioning/common/icu.ps1
new file mode 100644 (file)
index 0000000..4be185e
--- /dev/null
@@ -0,0 +1,9 @@
+# ICU is already pre-installed on Windows machines, it would be nice to have
+# the installation script, but for now let's just export the right variables
+
+# FIXME: do we really want to have it per MSVC version? What about MSVC2015?
+[Environment]::SetEnvironmentVariable("CI_ICU_PATH_MSVC2012", "C:\\Utils\\icu_53_1_msvc_2012_64_devel\\icu53_1", "Machine")
+[Environment]::SetEnvironmentVariable("CI_ICU_PATH_MSVC2013", "C:\\Utils\\icu_53_1_msvc_2013_64_devel\\icu53_1", "Machine")
+
+# FIXME: do we really want to use the 4.8.2 ICU build?
+[Environment]::SetEnvironmentVariable("CI_ICU_PATH_Mingw49", "C:\Utils\icu_53_1_Mingw_builds_4_8_2_posix_seh_64_devel\icu53_1", "Machine")
diff --git a/coin/provisioning/qtci-windows-10-x86/icu.ps1 b/coin/provisioning/qtci-windows-10-x86/icu.ps1
new file mode 100644 (file)
index 0000000..7756bd0
--- /dev/null
@@ -0,0 +1,6 @@
+Set-ExecutionPolicy RemoteSigned -Force
+
+# install jom
+. "$PSScriptRoot\..\common\icu.ps1"
+
+Set-ExecutionPolicy Restricted -Force
diff --git a/coin/provisioning/qtci-windows-10-x86_64/icu.ps1 b/coin/provisioning/qtci-windows-10-x86_64/icu.ps1
new file mode 100644 (file)
index 0000000..7756bd0
--- /dev/null
@@ -0,0 +1,6 @@
+Set-ExecutionPolicy RemoteSigned -Force
+
+# install jom
+. "$PSScriptRoot\..\common\icu.ps1"
+
+Set-ExecutionPolicy Restricted -Force
diff --git a/coin/provisioning/qtci-windows-7-x86/icu.ps1 b/coin/provisioning/qtci-windows-7-x86/icu.ps1
new file mode 100644 (file)
index 0000000..7756bd0
--- /dev/null
@@ -0,0 +1,6 @@
+Set-ExecutionPolicy RemoteSigned -Force
+
+# install jom
+. "$PSScriptRoot\..\common\icu.ps1"
+
+Set-ExecutionPolicy Restricted -Force
diff --git a/coin/provisioning/qtci-windows-8-x86/icu.ps1 b/coin/provisioning/qtci-windows-8-x86/icu.ps1
new file mode 100644 (file)
index 0000000..7756bd0
--- /dev/null
@@ -0,0 +1,6 @@
+Set-ExecutionPolicy RemoteSigned -Force
+
+# install jom
+. "$PSScriptRoot\..\common\icu.ps1"
+
+Set-ExecutionPolicy Restricted -Force
diff --git a/coin/provisioning/qtci-windows-8-x86_64/icu.ps1 b/coin/provisioning/qtci-windows-8-x86_64/icu.ps1
new file mode 100644 (file)
index 0000000..7756bd0
--- /dev/null
@@ -0,0 +1,6 @@
+Set-ExecutionPolicy RemoteSigned -Force
+
+# install jom
+. "$PSScriptRoot\..\common\icu.ps1"
+
+Set-ExecutionPolicy Restricted -Force