mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-24 16:05:36 +08:00
Compare commits
123 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad8cde9a68 | ||
|
|
4645ccb2c5 | ||
|
|
d436805fdb | ||
|
|
d158031eca | ||
|
|
965b6ad51a | ||
|
|
a385cdb1a2 | ||
|
|
c18ec4f25e | ||
|
|
5ed768546f | ||
|
|
3a209b83ef | ||
|
|
267e383d36 | ||
|
|
9311e04f6f | ||
|
|
170e4f5812 | ||
|
|
24f6a2f28a | ||
|
|
324a16f67c | ||
|
|
9348e3ca55 | ||
|
|
ee20f27b46 | ||
|
|
9c36723454 | ||
|
|
b2efef4875 | ||
|
|
8c657080f6 | ||
|
|
bc2b175b72 | ||
|
|
d3faf2f0df | ||
|
|
a7396199a1 | ||
|
|
beecc6e86e | ||
|
|
deb627054c | ||
|
|
e7472f4308 | ||
|
|
12fd0d5b9b | ||
|
|
b0a9259c6e | ||
|
|
2a5f54d07e | ||
|
|
892833cda9 | ||
|
|
a9cf936a63 | ||
|
|
b38e4732af | ||
|
|
92d1bdcb43 | ||
|
|
fba2c6f4dd | ||
|
|
88d718d381 | ||
|
|
c48355ebb5 | ||
|
|
73834c7166 | ||
|
|
a7b1b00350 | ||
|
|
dbf737a5c0 | ||
|
|
4e1f4665c5 | ||
|
|
42b502f7bc | ||
|
|
3ca7658781 | ||
|
|
1726ba1611 | ||
|
|
05dd83c73a | ||
|
|
30660bf987 | ||
|
|
a99d3432f7 | ||
|
|
39b3764a5a | ||
|
|
1bd2b2acfa | ||
|
|
c7a9bb92e1 | ||
|
|
835ef953f0 | ||
|
|
f05289d622 | ||
|
|
5df417aeb9 | ||
|
|
15b608cbc5 | ||
|
|
bd3ddeddd2 | ||
|
|
043e54c7c6 | ||
|
|
e4ba13a038 | ||
|
|
d841f90122 | ||
|
|
55227444e3 | ||
|
|
49ccf716dc | ||
|
|
d1d36cbbf1 | ||
|
|
c60e90a2c8 | ||
|
|
5958b8d3f0 | ||
|
|
c9d5341307 | ||
|
|
eca392d3f3 | ||
|
|
88cb7f4264 | ||
|
|
7e67de9700 | ||
|
|
2176de2286 | ||
|
|
252cbbc4b8 | ||
|
|
fd58c39c31 | ||
|
|
2c4b06a13d | ||
|
|
816f1c5512 | ||
|
|
5bc43f0cc3 | ||
|
|
0358b6d28c | ||
|
|
303d617329 | ||
|
|
35057fe4b2 | ||
|
|
038d263081 | ||
|
|
999b5f5dd7 | ||
|
|
ce47238ed9 | ||
|
|
982659b081 | ||
|
|
e78c03197a | ||
|
|
c5c23f3eba | ||
|
|
a4a7f71f37 | ||
|
|
2715a17c9b | ||
|
|
c33f28bc05 | ||
|
|
2ea45a59a7 | ||
|
|
370fdfcefd | ||
|
|
3ea073ada1 | ||
|
|
c6189f9723 | ||
|
|
c253d71a06 | ||
|
|
e48d653150 | ||
|
|
b8211774d9 | ||
|
|
5656b4848e | ||
|
|
315b76dc9b | ||
|
|
e7fc74d781 | ||
|
|
742737bd7c | ||
|
|
e00cb3ac59 | ||
|
|
8b59bbc2a4 | ||
|
|
80b739b1e8 | ||
|
|
a2cd0b3102 | ||
|
|
084d79e8b4 | ||
|
|
ce96014426 | ||
|
|
8c0390143b | ||
|
|
460cfd01b3 | ||
|
|
3fa98fcbb5 | ||
|
|
cb78b8cfca | ||
|
|
880e750629 | ||
|
|
f1f9b94b00 | ||
|
|
fb7581847e | ||
|
|
da4c2e21b1 | ||
|
|
ad97fd589f | ||
|
|
25160f24b6 | ||
|
|
2835a4d873 | ||
|
|
f65479ee0c | ||
|
|
a36977963a | ||
|
|
6afffd6985 | ||
|
|
32b5e271a8 | ||
|
|
713188e4af | ||
|
|
0c8536fc0a | ||
|
|
d4681ee690 | ||
|
|
3276f075b9 | ||
|
|
eeea4e5c3a | ||
|
|
07cc7ef71a | ||
|
|
43c9b16100 | ||
|
|
d0bbf98cc9 |
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -1,6 +1,6 @@
|
|||||||
.tag export-subst
|
.tag export-subst
|
||||||
.gitignore export-ignore
|
.gitignore export-ignore
|
||||||
.gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
.commit-template export-ignore
|
.commit-template export-ignore eol=lf
|
||||||
init-repository export-ignore
|
init-repository export-ignore
|
||||||
README.git export-ignore
|
README.git export-ignore
|
||||||
|
|||||||
129
.gitmodules
vendored
129
.gitmodules
vendored
@@ -1,66 +1,66 @@
|
|||||||
[submodule "qtbase"]
|
[submodule "qtbase"]
|
||||||
path = qtbase
|
path = qtbase
|
||||||
url = ../qtbase.git
|
url = ../qtbase.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = essential
|
status = essential
|
||||||
[submodule "qtsvg"]
|
[submodule "qtsvg"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
path = qtsvg
|
path = qtsvg
|
||||||
url = ../qtsvg.git
|
url = ../qtsvg.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtdeclarative"]
|
[submodule "qtdeclarative"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtxmlpatterns
|
recommends = qtsvg qtxmlpatterns
|
||||||
path = qtdeclarative
|
path = qtdeclarative
|
||||||
url = ../qtdeclarative.git
|
url = ../qtdeclarative.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = essential
|
status = essential
|
||||||
[submodule "qtactiveqt"]
|
[submodule "qtactiveqt"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
path = qtactiveqt
|
path = qtactiveqt
|
||||||
url = ../qtactiveqt.git
|
url = ../qtactiveqt.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtscript"]
|
[submodule "qtscript"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qttools
|
recommends = qttools
|
||||||
path = qtscript
|
path = qtscript
|
||||||
url = ../qtscript.git
|
url = ../qtscript.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = deprecated
|
status = deprecated
|
||||||
[submodule "qtmultimedia"]
|
[submodule "qtmultimedia"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtdeclarative
|
recommends = qtdeclarative
|
||||||
path = qtmultimedia
|
path = qtmultimedia
|
||||||
url = ../qtmultimedia.git
|
url = ../qtmultimedia.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = essential
|
status = essential
|
||||||
[submodule "qttools"]
|
[submodule "qttools"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtdeclarative qtactiveqt qtwebkit
|
recommends = qtdeclarative qtactiveqt qtwebkit
|
||||||
path = qttools
|
path = qttools
|
||||||
url = ../qttools.git
|
url = ../qttools.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = essential
|
status = essential
|
||||||
[submodule "qtxmlpatterns"]
|
[submodule "qtxmlpatterns"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
path = qtxmlpatterns
|
path = qtxmlpatterns
|
||||||
url = ../qtxmlpatterns.git
|
url = ../qtxmlpatterns.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qttranslations"]
|
[submodule "qttranslations"]
|
||||||
depends = qttools
|
depends = qttools
|
||||||
path = qttranslations
|
path = qttranslations
|
||||||
url = ../qttranslations.git
|
url = ../qttranslations.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = essential
|
status = essential
|
||||||
priority = 30
|
priority = 30
|
||||||
[submodule "qtdoc"]
|
[submodule "qtdoc"]
|
||||||
depends = qtdeclarative
|
depends = qtdeclarative
|
||||||
path = qtdoc
|
path = qtdoc
|
||||||
url = ../qtdoc.git
|
url = ../qtdoc.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = essential
|
status = essential
|
||||||
priority = 40
|
priority = 40
|
||||||
[submodule "qtrepotools"]
|
[submodule "qtrepotools"]
|
||||||
@@ -68,13 +68,14 @@
|
|||||||
url = ../qtrepotools.git
|
url = ../qtrepotools.git
|
||||||
branch = master
|
branch = master
|
||||||
status = essential
|
status = essential
|
||||||
qt = false
|
project = -
|
||||||
[submodule "qtwebkit"]
|
[submodule "qtwebkit"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtdeclarative qtlocation qtmultimedia qtsensors qtwebchannel qtxmlpatterns
|
recommends = qtdeclarative qtlocation qtmultimedia qtsensors qtwebchannel qtxmlpatterns
|
||||||
|
serialize = qtwebengine
|
||||||
path = qtwebkit
|
path = qtwebkit
|
||||||
url = ../qtwebkit.git
|
url = ../qtwebkit.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = obsolete
|
status = obsolete
|
||||||
project = WebKit.pro
|
project = WebKit.pro
|
||||||
priority = 20
|
priority = 20
|
||||||
@@ -82,7 +83,7 @@
|
|||||||
depends = qtwebkit qttools
|
depends = qtwebkit qttools
|
||||||
path = qtwebkit-examples
|
path = qtwebkit-examples
|
||||||
url = ../qtwebkit-examples.git
|
url = ../qtwebkit-examples.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = obsolete
|
status = obsolete
|
||||||
[submodule "qtqa"]
|
[submodule "qtqa"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
@@ -96,14 +97,14 @@
|
|||||||
recommends = qtdeclarative qtquickcontrols qtserialport qtsystems
|
recommends = qtdeclarative qtquickcontrols qtserialport qtsystems
|
||||||
path = qtlocation
|
path = qtlocation
|
||||||
url = ../qtlocation.git
|
url = ../qtlocation.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtsensors"]
|
[submodule "qtsensors"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtdeclarative qtsvg
|
recommends = qtdeclarative
|
||||||
path = qtsensors
|
path = qtsensors
|
||||||
url = ../qtsensors.git
|
url = ../qtsensors.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtsystems"]
|
[submodule "qtsystems"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
@@ -136,177 +137,135 @@
|
|||||||
recommends = qtdeclarative qtandroidextras
|
recommends = qtdeclarative qtandroidextras
|
||||||
path = qtconnectivity
|
path = qtconnectivity
|
||||||
url = ../qtconnectivity.git
|
url = ../qtconnectivity.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtwayland"]
|
[submodule "qtwayland"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtdeclarative
|
recommends = qtdeclarative
|
||||||
path = qtwayland
|
path = qtwayland
|
||||||
url = ../qtwayland.git
|
url = ../qtwayland.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qt3d"]
|
[submodule "qt3d"]
|
||||||
depends = qtdeclarative qtimageformats
|
depends = qtdeclarative qtimageformats
|
||||||
recommends = qtgamepad
|
|
||||||
path = qt3d
|
path = qt3d
|
||||||
url = ../qt3d.git
|
url = ../qt3d.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = preview
|
||||||
[submodule "qtimageformats"]
|
[submodule "qtimageformats"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
path = qtimageformats
|
path = qtimageformats
|
||||||
url = ../qtimageformats.git
|
url = ../qtimageformats.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtquick1"]
|
[submodule "qtquick1"]
|
||||||
depends = qtscript
|
depends = qtscript
|
||||||
recommends = qtxmlpatterns
|
recommends = qtsvg qtxmlpatterns
|
||||||
path = qtquick1
|
path = qtquick1
|
||||||
url = ../qtquick1.git
|
url = ../qtquick1.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = ignore
|
status = obsolete
|
||||||
[submodule "qtgraphicaleffects"]
|
[submodule "qtgraphicaleffects"]
|
||||||
depends = qtdeclarative
|
depends = qtdeclarative
|
||||||
path = qtgraphicaleffects
|
path = qtgraphicaleffects
|
||||||
url = ../qtgraphicaleffects.git
|
url = ../qtgraphicaleffects.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtquickcontrols"]
|
[submodule "qtquickcontrols"]
|
||||||
depends = qtdeclarative
|
depends = qtdeclarative
|
||||||
recommends = qtgraphicaleffects
|
recommends = qtgraphicaleffects
|
||||||
path = qtquickcontrols
|
path = qtquickcontrols
|
||||||
url = ../qtquickcontrols.git
|
url = ../qtquickcontrols.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = essential
|
status = essential
|
||||||
[submodule "qtserialbus"]
|
[submodule "qtserialbus"]
|
||||||
depends = qtserialport
|
depends = qtserialport
|
||||||
path = qtserialbus
|
path = qtserialbus
|
||||||
url = ../qtserialbus.git
|
url = ../qtserialbus.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = preview
|
status = preview
|
||||||
[submodule "qtserialport"]
|
[submodule "qtserialport"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
path = qtserialport
|
path = qtserialport
|
||||||
url = ../qtserialport.git
|
url = ../qtserialport.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtx11extras"]
|
[submodule "qtx11extras"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
path = qtx11extras
|
path = qtx11extras
|
||||||
url = ../qtx11extras.git
|
url = ../qtx11extras.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtmacextras"]
|
[submodule "qtmacextras"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
path = qtmacextras
|
path = qtmacextras
|
||||||
url = ../qtmacextras.git
|
url = ../qtmacextras.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtwinextras"]
|
[submodule "qtwinextras"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtdeclarative qtmultimedia
|
recommends = qtdeclarative qtmultimedia
|
||||||
path = qtwinextras
|
path = qtwinextras
|
||||||
url = ../qtwinextras.git
|
url = ../qtwinextras.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtandroidextras"]
|
[submodule "qtandroidextras"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
path = qtandroidextras
|
path = qtandroidextras
|
||||||
url = ../qtandroidextras.git
|
url = ../qtandroidextras.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtenginio"]
|
[submodule "qtenginio"]
|
||||||
depends = qtdeclarative
|
depends = qtdeclarative
|
||||||
path = qtenginio
|
path = qtenginio
|
||||||
url = ../qtenginio.git
|
url = ../qtenginio.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = ignore
|
status = deprecated
|
||||||
[submodule "qtwebsockets"]
|
[submodule "qtwebsockets"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtdeclarative
|
recommends = qtdeclarative
|
||||||
path = qtwebsockets
|
path = qtwebsockets
|
||||||
url = ../qtwebsockets.git
|
url = ../qtwebsockets.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtwebchannel"]
|
[submodule "qtwebchannel"]
|
||||||
depends = qtbase
|
depends = qtbase
|
||||||
recommends = qtdeclarative qtwebsockets
|
recommends = qtdeclarative qtwebsockets
|
||||||
path = qtwebchannel
|
path = qtwebchannel
|
||||||
url = ../qtwebchannel.git
|
url = ../qtwebchannel.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtwebengine"]
|
[submodule "qtwebengine"]
|
||||||
depends = qtquickcontrols qtwebchannel
|
depends = qtquickcontrols qtwebchannel
|
||||||
recommends = qtlocation
|
recommends = qtlocation
|
||||||
path = qtwebengine
|
path = qtwebengine
|
||||||
url = ../qtwebengine.git
|
url = ../qtwebengine.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
priority = 10
|
priority = 10
|
||||||
[submodule "qtcanvas3d"]
|
[submodule "qtcanvas3d"]
|
||||||
depends = qtdeclarative
|
depends = qtdeclarative
|
||||||
path = qtcanvas3d
|
path = qtcanvas3d
|
||||||
url = ../qtcanvas3d.git
|
url = ../qtcanvas3d.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtwebview"]
|
[submodule "qtwebview"]
|
||||||
depends = qtdeclarative
|
depends = qtdeclarative
|
||||||
recommends = qtwebengine
|
recommends = qtwebengine
|
||||||
path = qtwebview
|
path = qtwebview
|
||||||
url = ../qtwebview.git
|
url = ../qtwebview.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = addon
|
||||||
[submodule "qtquickcontrols2"]
|
[submodule "qtquickcontrols2"]
|
||||||
depends = qtgraphicaleffects
|
depends = qtquickcontrols
|
||||||
path = qtquickcontrols2
|
path = qtquickcontrols2
|
||||||
url = ../qtquickcontrols2.git
|
url = ../qtquickcontrols2.git
|
||||||
branch = 5.7
|
branch = 5.6
|
||||||
status = addon
|
status = preview
|
||||||
[submodule "qtpurchasing"]
|
[submodule "qtpurchasing"]
|
||||||
depends = qtbase qtandroidextras
|
depends = qtbase qtandroidextras
|
||||||
recommends = qtdeclarative
|
recommends = qtdeclarative
|
||||||
path = qtpurchasing
|
path = qtpurchasing
|
||||||
url = ../qtpurchasing.git
|
url = ../qtpurchasing.git
|
||||||
branch = 5.7
|
|
||||||
status = addon
|
|
||||||
[submodule "qtcharts"]
|
|
||||||
depends = qtbase
|
|
||||||
recommends = qtdeclarative qtmultimedia
|
|
||||||
path = qtcharts
|
|
||||||
url = ../qtcharts.git
|
|
||||||
branch = 5.7
|
|
||||||
status = addon
|
|
||||||
[submodule "qtdatavis3d"]
|
|
||||||
depends = qtbase
|
|
||||||
recommends = qtdeclarative qtmultimedia
|
|
||||||
path = qtdatavis3d
|
|
||||||
url = ../qtdatavis3d.git
|
|
||||||
branch = 5.7
|
|
||||||
status = addon
|
|
||||||
[submodule "qtvirtualkeyboard"]
|
|
||||||
depends = qtbase qtdeclarative qtsvg
|
|
||||||
recommends = qtmultimedia qtquickcontrols
|
|
||||||
path = qtvirtualkeyboard
|
|
||||||
url = ../qtvirtualkeyboard.git
|
|
||||||
branch = 5.7
|
|
||||||
status = addon
|
|
||||||
[submodule "qtgamepad"]
|
|
||||||
depends = qtbase
|
|
||||||
recommends = qtdeclarative
|
|
||||||
path = qtgamepad
|
|
||||||
url = ../qtgamepad
|
|
||||||
branch = 5.7
|
|
||||||
status = preview
|
|
||||||
[submodule "qtscxml"]
|
|
||||||
depends = qtbase qtdeclarative
|
|
||||||
path = qtscxml
|
|
||||||
url = ../qtscxml
|
|
||||||
branch = 5.7
|
|
||||||
status = preview
|
|
||||||
[submodule "qtspeech"]
|
|
||||||
depends = qtbase
|
|
||||||
recommends = qtdeclarative qtmultimedia
|
|
||||||
path = qtspeech
|
|
||||||
url = ../qtspeech
|
|
||||||
branch = dev
|
branch = dev
|
||||||
status = ignore
|
status = ignore
|
||||||
|
|||||||
8
README
8
README
@@ -10,7 +10,7 @@ HOW TO BUILD QT5
|
|||||||
|
|
||||||
- Perl 5.8 or later
|
- Perl 5.8 or later
|
||||||
- Python 2.7 or later
|
- Python 2.7 or later
|
||||||
- C++ compiler supporting the C++11 standard
|
- C++ compiler supporting the C++98 standard
|
||||||
|
|
||||||
For other platform specific requirements,
|
For other platform specific requirements,
|
||||||
please see section "Setting up your machine" on:
|
please see section "Setting up your machine" on:
|
||||||
@@ -39,10 +39,8 @@ HOW TO BUILD QT5
|
|||||||
Windows:
|
Windows:
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Open a command prompt.
|
Open a Windows SDK (7.0, 7.1 or later) command prompt. Ensure that the
|
||||||
Ensure that the following tools can be found in the path:
|
following tools can be found in the path:
|
||||||
* Supported compiler (Visual Studio 2012 or later,
|
|
||||||
MinGW-builds gcc 4.9 or later)
|
|
||||||
* Perl version 5.12 or later [http://www.activestate.com/activeperl/]
|
* Perl version 5.12 or later [http://www.activestate.com/activeperl/]
|
||||||
* Python version 2.7 or later [http://www.activestate.com/activepython/]
|
* Python version 2.7 or later [http://www.activestate.com/activepython/]
|
||||||
* Ruby version 1.9.3 or later [http://rubyinstaller.org/]
|
* Ruby version 1.9.3 or later [http://rubyinstaller.org/]
|
||||||
|
|||||||
@@ -3,6 +3,11 @@ Continuous Integration
|
|||||||
|
|
||||||
This directory contains files used by Qt's Continuous Integration system (Coin).
|
This directory contains files used by Qt's Continuous Integration system (Coin).
|
||||||
|
|
||||||
|
pre-provisioning
|
||||||
|
----------------
|
||||||
|
Contains scripts which are used to install software to tier1 machines manually.
|
||||||
|
E.g. Visual studio installation takes too long to be included to automatic provisioning of tier2 templates.
|
||||||
|
|
||||||
provisioning
|
provisioning
|
||||||
------------
|
------------
|
||||||
Contains scripts that apply to different test machines in order to run automatic tests on them.
|
Contains scripts that apply to different test machines in order to run automatic tests on them.
|
||||||
|
|||||||
@@ -1,24 +1,25 @@
|
|||||||
Template Target OS Target arch Compiler Features
|
Template Target OS Target arch Compiler Features
|
||||||
----------------------------------- ------------------- --------------- ----------- -----------------------------------------------------------------
|
----------------------------------- ------------------- ----------- ----------- -------------------------------------------------------------------------------------
|
||||||
qtci-windows-8-x86_64 MSVC2013 DeveloperBuild Release BuildExamples
|
qtci-windows-8.1-x86_64 MSVC2013 DeveloperBuild Release BuildExamples
|
||||||
qtci-windows-10-x86_64 MSVC2015 DeveloperBuild Release QtNamespace QtLibInfix
|
qtci-windows-8.1-x86_64 MSVC2012 DeveloperBuild Release QtNamespace QtLibInfix
|
||||||
qtci-windows-8-x86 MSVC2013 Packaging DebugAndRelease Release OpenGLDynamic
|
qtci-windows-8.1-x86_64 x86 MSVC2013 Packaging DebugAndRelease Release OpenGLDynamic UploadConfigureExe
|
||||||
qtci-windows-8-x86_64 MSVC2013 Packaging DebugAndRelease Release OpenGLDynamic
|
qtci-windows-8.1-x86_64 MSVC2013 Packaging DebugAndRelease Release OpenGLDynamic UploadConfigureExe
|
||||||
qtci-windows-7-x86 Mingw53 Packaging DebugAndRelease Release OpenGLDynamic
|
qtci-windows-7-x86-3 MSVC2010 Release DeveloperBuild QtNamespace QtLibInfix OpenGLDynamic
|
||||||
qtci-windows-10-x86 MSVC2015 Packaging DebugAndRelease Release OpenGLDynamic
|
qtci-windows-7-x86-3 Mingw49 Packaging DebugAndRelease Release OpenGLDynamic UploadConfigureExe
|
||||||
qtci-windows-10-x86_64 MSVC2015 Packaging DebugAndRelease Release OpenGLDynamic
|
qtci-windows-10-x86_64-10 x86 MSVC2015 Packaging DebugAndRelease Release OpenGLDynamic UploadConfigureExe
|
||||||
qtci-windows-8-x86_64 Windows_Phone_8_1 armv4 MSVC2013 Packaging DebugAndRelease Release DisableTests
|
qtci-windows-10-x86_64-10 MSVC2015 Packaging DebugAndRelease Release OpenGLDynamic UploadConfigureExe
|
||||||
qtci-windows-8-x86_64 WinRT_8_1 MSVC2013 Packaging DebugAndRelease Release DisableTests
|
qtci-linux-Ubuntu-14.04-x86_64-1 GCC NoWidgets ForceDebugInfo
|
||||||
qtci-linux-Ubuntu-14.04-x86_64 GCC NoWidgets ForceDebugInfo
|
qtci-linux-Ubuntu-14.04-x86_64-1 GCC DeveloperBuild OutOfSourceBuild QtLibInfix QtNamespace Documentation
|
||||||
qtci-linux-Ubuntu-14.04-x86_64 GCC DeveloperBuild OutOfSourceBuild QtLibInfix QtNamespace
|
qtci-windows-8.1-x86_64 Windows_Phone_8_1 armv4 MSVC2013 Packaging DebugAndRelease Release DisableTests UploadConfigureExe
|
||||||
qtci-linux-OpenSuSE-13.01-x86_64 GCC DeveloperBuild NoPch
|
qtci-windows-8.1-x86_64 WinRT_8_1 MSVC2013 Packaging DebugAndRelease Release DisableTests UploadConfigureExe
|
||||||
qtci-linux-RHEL-6.6-x86_64 GCC Packaging Release NoUseGoldLinker
|
qtci-linux-OpenSuSE-13.01-x86_64 GCC DeveloperBuild NoPch
|
||||||
qtci-osx-10.10-x86_64 Clang Packaging DebugAndRelease Release
|
qtci-linux-RHEL-6.6-x86_64 GCC Packaging Release NoUseGoldLinker
|
||||||
qtci-osx-10.9-x86_64 Clang DeveloperBuild Release QtNamespace NoPch
|
qtci-osx-10.11-x86_64-3 Clang Packaging DebugAndRelease Release
|
||||||
qtci-osx-10.8-x86_64 Clang Release NoFramework
|
qtci-osx-10.10-x86_64 Clang DebugAndRelease Release DisableTests
|
||||||
qtci-linux-RHEL-6.6-x86_64 Android_ANY armv7 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
qtci-osx-10.9-x86_64 Clang DeveloperBuild Release QtNamespace NoPch
|
||||||
qtci-linux-Ubuntu-14.04-x86_64 Boot2Qt_Jethro armv7 GCC DisableTests
|
qtci-osx-10.8-x86_64 Clang Release NoFramework
|
||||||
qtci-linux-Ubuntu-15.04-x86_64 UbuntuTouch_15_04 armv7 GCC Packaging DisableTests OpenGLES2
|
qtci-linux-RHEL-6.6-x86_64 Android_ANY armv7 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||||
qtci-linux-RHEL-6.6-x86_64 QNX_660 armv7 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
qtci-linux-Ubuntu-14.04-x86_64-1 Boot2Qt_Fido armv7 GCC DisableTests
|
||||||
qtci-linux-Ubuntu-14.04-x86_64 GCC TestOnly LicenseCheck
|
qtci-linux-RHEL-6.6-x86_64 QNX_660 armv7 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||||
qtci-osx-10.10-x86_64 IOS_ANY x86_64 Clang Release DisableTests Static
|
qtci-linux-Ubuntu-14.04-x86_64-1 GCC TestOnly LicenseCheck
|
||||||
|
qtci-windows-7-x86-3 Windows_7_Embedded armv4 MSVC2008 DeveloperBuild Release DisableTests OpenGLES2
|
||||||
|
|||||||
@@ -1,20 +1,15 @@
|
|||||||
Template Target OS Target arch Compiler Features
|
Template Target OS Target arch Compiler Features
|
||||||
--------------------------- ------------------- ----------- ----------- -----------------------------------------------------------------
|
--------------------------- ------------------- ----------- ----------- -----------------------------------------------------------------------------------------------
|
||||||
qtci-windows-8-x86_64 Windows_Phone_8_1 x86 MSVC2013 Packaging DebugAndRelease Release DisableTests
|
qtci-windows-8.1-x86_64 Windows_Phone_8_1 x86 MSVC2013 Packaging DebugAndRelease Release DisableTests UploadConfigureExe
|
||||||
qtci-windows-10-x86_64 WinRT_10 x86 MSVC2015 Packaging DebugAndRelease Release DisableTests
|
qtci-windows-10-x86_64-10 WinRT_10 x86 MSVC2015 Packaging DebugAndRelease Release DisableTests UploadConfigureExe
|
||||||
qtci-windows-10-x86_64 WinRT_10 MSVC2015 Packaging DebugAndRelease Release DisableTests
|
qtci-windows-10-x86_64-10 WinRT_10 MSVC2015 Packaging DebugAndRelease Release DisableTests UploadConfigureExe
|
||||||
|
|
||||||
# target arch is used here only for documentation the value is ignored
|
|
||||||
qtci-windows-10-x86_64 WinRT_10 armv7 MSVC2015 Packaging DebugAndRelease Release DisableTests
|
|
||||||
|
|
||||||
# qtci-osx-10.8-x86_64 Clang Release NoFramework
|
|
||||||
qtci-linux-RHEL-6.6-x86_64 Android_ANY x86 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
qtci-linux-RHEL-6.6-x86_64 Android_ANY x86 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||||
qtci-windows-7-x86 Android_ANY armv7 Mingw49 Packaging Release DisableTests OpenGLES2
|
qtci-windows-7-x86-3 Android_ANY armv7 Mingw49 Packaging Release DisableTests OpenGLES2 UploadConfigureExe
|
||||||
qtci-windows-7-x86 Android_ANY x86 Mingw49 Packaging Release DisableTests OpenGLES2
|
qtci-windows-7-x86-3 Android_ANY x86 Mingw49 Packaging Release DisableTests OpenGLES2 UploadConfigureExe
|
||||||
qtci-osx-10.10-x86_64 Android_ANY armv7 GCC Packaging Release DisableTests OpenGLES2
|
qtci-osx-10.11-x86_64-3 Android_ANY armv7 GCC Packaging Release DisableTests OpenGLES2
|
||||||
qtci-osx-10.10-x86_64 Android_ANY x86 GCC Packaging Release DisableTests OpenGLES2
|
qtci-osx-10.11-x86_64-3 Android_ANY x86 GCC Packaging Release DisableTests OpenGLES2
|
||||||
qtci-linux-RHEL-6.6-x86_64 QNX_660 x86 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
qtci-linux-RHEL-6.6-x86_64 QNX_660 x86 GCC Packaging Release DisableTests OpenGLES2 NoUseGoldLinker
|
||||||
qtci-windows-7-x86 QNX_660 armv7 Mingw49 Packaging Release DisableTests OpenGLES2
|
qtci-windows-10-x86_64-10 QNX_660 armv7 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||||
qtci-windows-7-x86 QNX_660 x86 Mingw49 Packaging Release DisableTests OpenGLES2
|
qtci-windows-10-x86_64-10 QNX_660 x86 Mingw53 Packaging Release DisableTests OpenGLES2
|
||||||
|
# target arch is used here only for documentation the value is ignored
|
||||||
qtci-osx-10.10-x86_64 IOS_ANY multi Clang Packaging DebugAndRelease DisableTests Static
|
qtci-windows-10-x86_64-10 WinRT_10 armv7 MSVC2015 Packaging DebugAndRelease Release DisableTests UploadConfigureExe
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
. "$PSScriptRoot\..\..\provisioning\common\windows\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Visual Studio 2017 Build Tools
|
||||||
|
# https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017
|
||||||
|
|
||||||
|
$version = "2017_version_15.0"
|
||||||
|
$url_cache = "http://ci-files01-hki.ci.local/input/windows/mu_build_tools_for_visual_studio_" + $version + "_x86_x64_10254482.exe"
|
||||||
|
$sha1 = "a31e099e5114fef80a21654689e6864afc544a16"
|
||||||
|
$msvcPackage = "C:\Windows\Temp\$version.exe"
|
||||||
|
|
||||||
|
Download $url_cache $url_cache $msvcPackage
|
||||||
|
Verify-Checksum $msvcPackage $sha1
|
||||||
|
cmd /c "$msvcPackage --all --passive --wait"
|
||||||
|
echo "Cleaning $msvcPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$msvcPackage"
|
||||||
|
echo "Visual Studio Build Tools = $version" >> ~\versions.txt
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
. "$PSScriptRoot\..\..\provisioning\common\windows\helpers.ps1"
|
||||||
|
|
||||||
|
# Install Visual Studio $version with $update_version
|
||||||
|
# Original download page: https://www.visualstudio.com/en-us/news/releasenotes/vs2015-update3-vs
|
||||||
|
$version = "2015"
|
||||||
|
$update_version = "3"
|
||||||
|
|
||||||
|
# Only way to install specific Visual studio release is to use feed.xml.
|
||||||
|
# Visual Studio $version setup will use the feed.xml that was available when $update_version released -> 'https://msdn.microsoft.com/en-us/library/mt653628.aspx'
|
||||||
|
# These parameters will install Visual Studio Enterprise Update $update_version (the original Update $update_version without any further Update $update_version-era updates)
|
||||||
|
$parameters = "/OverrideFeedURI http://download.microsoft.com/download/6/B/B/6BBD3561-D764-4F39-AB8E-05356A122545/20160628.2/enu/feed.xml"
|
||||||
|
|
||||||
|
$msvc_web_installer = "vs" + $version + "_" + $update_version
|
||||||
|
$package = "C:\Windows\temp\$msvc_web_installer.exe"
|
||||||
|
$url_cache = "http://ci-files01-hki.ci.local/input/windows/$msvc_web_installer.exe"
|
||||||
|
$url_official = "https://go.microsoft.com/fwlink/?LinkId=691129"
|
||||||
|
$sha1 = "68abf90424aff604a04d6c61fb52adcd2cab2266"
|
||||||
|
|
||||||
|
echo "Fetching Visual Studio $version update $update_version..."
|
||||||
|
Download $url_official $url_cache $package
|
||||||
|
Verify-Checksum $package $sha1
|
||||||
|
echo "Installing Visual studio $version update $update_version..."
|
||||||
|
cmd /c "$package $parameters /norestart /Quiet"
|
||||||
|
remove-item $package
|
||||||
|
|
||||||
|
echo "Visual Studio = $version update $update_version" >> ~\versions.txt
|
||||||
49
coin/pre-provisioning/qtci-windows-10-x86/msvc2017.ps1
Normal file
49
coin/pre-provisioning/qtci-windows-10-x86/msvc2017.ps1
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\..\..\provisioning\common\windows\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Visual Studio 2017
|
||||||
|
|
||||||
|
$version = "2017"
|
||||||
|
$url_cache = "http://ci-files01-hki.ci.local/input/windows/mu_visual_studio_professional_" + $version + "_x86_x64_10049787.exe"
|
||||||
|
$sha1 = "8d678d27735018a99dc22ddb5412e4e6868991ae"
|
||||||
|
$msvcPackage = "C:\Windows\Temp\$version.exe"
|
||||||
|
|
||||||
|
|
||||||
|
Download $url_cache $url_cache $msvcPackage
|
||||||
|
Verify-Checksum $msvcPackage $sha1
|
||||||
|
cmd /c "$msvcPackage --all --norestart --quiet --wait --add Microsoft.VisualStudio.Component.VC.Tools.ARM"
|
||||||
|
echo "Cleaning $msvcPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$msvcPackage"
|
||||||
|
echo "Visual Studio = $version" >> ~\versions.txt
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
. "$PSScriptRoot\..\..\provisioning\common\windows\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Visual Studio 2017 Build Tools
|
||||||
|
# https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017
|
||||||
|
|
||||||
|
$version = "2017_version_15.0"
|
||||||
|
$url_cache = "http://ci-files01-hki.ci.local/input/windows/mu_build_tools_for_visual_studio_" + $version + "_x86_x64_10254482.exe"
|
||||||
|
$sha1 = "a31e099e5114fef80a21654689e6864afc544a16"
|
||||||
|
$msvcPackage = "C:\Windows\Temp\$version.exe"
|
||||||
|
|
||||||
|
Download $url_cache $url_cache $msvcPackage
|
||||||
|
Verify-Checksum $msvcPackage $sha1
|
||||||
|
cmd /c "$msvcPackage --all --passive --wait"
|
||||||
|
echo "Cleaning $msvcPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$msvcPackage"
|
||||||
|
echo "Visual Studio Build Tools = $version" >> ~\versions.txt
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
. "$PSScriptRoot\..\..\provisioning\common\windows\helpers.ps1"
|
||||||
|
|
||||||
|
# Install Visual Studio $version with $update_version
|
||||||
|
# Original download page: https://www.visualstudio.com/en-us/news/releasenotes/vs2015-update3-vs
|
||||||
|
$version = "2015"
|
||||||
|
$update_version = "3"
|
||||||
|
|
||||||
|
# Only way to install specific Visual studio release is to use feed.xml.
|
||||||
|
# Visual Studio $version setup will use the feed.xml that was available when $update_version released -> 'https://msdn.microsoft.com/en-us/library/mt653628.aspx'
|
||||||
|
# These parameters will install Visual Studio Enterprise Update $update_version (the original Update $update_version without any further Update $update_version-era updates)
|
||||||
|
$parameters = "/OverrideFeedURI http://download.microsoft.com/download/6/B/B/6BBD3561-D764-4F39-AB8E-05356A122545/20160628.2/enu/feed.xml"
|
||||||
|
|
||||||
|
$msvc_web_installer = "vs" + $version + "_" + $update_version
|
||||||
|
$package = "C:\Windows\temp\$msvc_web_installer.exe"
|
||||||
|
$url_cache = "http://ci-files01-hki.ci.local/input/windows/$msvc_web_installer.exe"
|
||||||
|
$url_official = "https://go.microsoft.com/fwlink/?LinkId=691129"
|
||||||
|
$sha1 = "68abf90424aff604a04d6c61fb52adcd2cab2266"
|
||||||
|
|
||||||
|
echo "Fetching Visual Studio $version update $update_version..."
|
||||||
|
Download $url_official $url_cache $package
|
||||||
|
Verify-Checksum $package $sha1
|
||||||
|
echo "Installing Visual studio $version update $update_version..."
|
||||||
|
cmd /c "$package $parameters /norestart /Quiet"
|
||||||
|
remove-item $package
|
||||||
|
|
||||||
|
echo "Visual Studio = $version update $update_version" >> ~\versions.txt
|
||||||
49
coin/pre-provisioning/qtci-windows-10-x86_64/msvc2017.ps1
Normal file
49
coin/pre-provisioning/qtci-windows-10-x86_64/msvc2017.ps1
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\..\..\provisioning\common\windows\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Visual Studio 2017
|
||||||
|
|
||||||
|
$version = "2017"
|
||||||
|
$url_cache = "http://ci-files01-hki.ci.local/input/windows/mu_visual_studio_professional_" + $version + "_x86_x64_10049787.exe"
|
||||||
|
$sha1 = "8d678d27735018a99dc22ddb5412e4e6868991ae"
|
||||||
|
$msvcPackage = "C:\Windows\Temp\$version.exe"
|
||||||
|
|
||||||
|
|
||||||
|
Download $url_cache $url_cache $msvcPackage
|
||||||
|
Verify-Checksum $msvcPackage $sha1
|
||||||
|
cmd /c "$msvcPackage --all --norestart --quiet --wait --add Microsoft.VisualStudio.Component.VC.Tools.ARM"
|
||||||
|
echo "Cleaning $msvcPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$msvcPackage"
|
||||||
|
echo "Visual Studio = $version" >> ~\versions.txt
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
. "$PSScriptRoot\helpers.ps1"
|
|
||||||
|
|
||||||
$scriptsPath = "C:\Python27\Scripts"
|
|
||||||
|
|
||||||
& "$scriptsPath\pip.exe" install --upgrade conan==0.16.0
|
|
||||||
|
|
||||||
[Environment]::SetEnvironmentVariable("CI_CONAN_BUILDINFO_DIR", "C:\Utils\conanbuildinfos", "Machine")
|
|
||||||
|
|
||||||
function Start-Process-Logged
|
|
||||||
{
|
|
||||||
Write-Host "Start-Process", $args
|
|
||||||
Start-Process @args
|
|
||||||
}
|
|
||||||
|
|
||||||
function Run-Conan-Install
|
|
||||||
{
|
|
||||||
Param (
|
|
||||||
[string]$ConanfilesDir,
|
|
||||||
[string]$BuildinfoDir,
|
|
||||||
[string]$Arch,
|
|
||||||
[string]$Compiler,
|
|
||||||
[string]$CompilerVersion,
|
|
||||||
[string]$CompilerRuntime,
|
|
||||||
[string]$CompilerLibcxx
|
|
||||||
)
|
|
||||||
|
|
||||||
if ($CompilerRuntime) {
|
|
||||||
$extraArgs = "-s compiler.runtime=$($CompilerRuntime)"
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($CompilerLibcxx) {
|
|
||||||
$extraArgs = "-s compiler.libcxx=$($CompilerLibcxx)"
|
|
||||||
}
|
|
||||||
|
|
||||||
Get-ChildItem -Path "$ConanfilesDir\*.txt" |
|
|
||||||
ForEach-Object {
|
|
||||||
$conanfile = $_.FullName
|
|
||||||
$outpwd = "C:\Utils\conanbuildinfos\$($BuildinfoDir)\$($_.BaseName)"
|
|
||||||
$manifestsDir = "$($_.DirectoryName)\$($_.BaseName).manifests"
|
|
||||||
New-Item $outpwd -Type directory -Force
|
|
||||||
|
|
||||||
$process = Start-Process-Logged `
|
|
||||||
"$scriptsPath\conan.exe" `
|
|
||||||
-WorkingDirectory $outpwd `
|
|
||||||
-ArgumentList "install -f $conanfile --no-imports --verify $manifestsDir", `
|
|
||||||
'-s', ('compiler="' + $Compiler + '"'), `
|
|
||||||
"-s os=Windows -s arch=$Arch -s compiler.version=$CompilerVersion $extraArgs" `
|
|
||||||
-NoNewWindow -Wait -Verbose `
|
|
||||||
-PassThru # Return process object
|
|
||||||
|
|
||||||
if ($process.ExitCode -ne 0) {
|
|
||||||
Write-Host "conan exited with code $($process.ExitCode)"
|
|
||||||
Exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
Copy-Item -Path $conanfile -Destination "$outpwd\conanfile.txt"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
. "$PSScriptRoot\helpers.ps1"
|
|
||||||
|
|
||||||
$zip = "c:\users\qt\downloads\cmake-3.6.2-win32-x86.zip"
|
|
||||||
|
|
||||||
Download https://cmake.org/files/v3.6/cmake-3.6.2-win32-x86.zip http://ci-files01-hki.ci.local/input/cmake/cmake-3.6.2-win32-x86.zip $zip
|
|
||||||
Verify-Checksum $zip "541F6E7EFD228E46770B8631FFE57097576E4D4E"
|
|
||||||
|
|
||||||
Extract-Zip $zip C:
|
|
||||||
Remove-Item C:\CMake -Force -Recurse
|
|
||||||
Rename-Item C:\cmake-3.6.2-win32-x86 C:\CMake
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
function Verify-Checksum
|
|
||||||
{
|
|
||||||
Param (
|
|
||||||
[string]$File=$(throw("You must specify a filename to get the checksum of.")),
|
|
||||||
[string]$Expected=$(throw("Checksum required")),
|
|
||||||
[ValidateSet("sha1","md5")][string]$Algorithm="sha1"
|
|
||||||
)
|
|
||||||
$fs = new-object System.IO.FileStream $File, "Open"
|
|
||||||
$algo = [type]"System.Security.Cryptography.$Algorithm"
|
|
||||||
$crypto = $algo::Create()
|
|
||||||
$hash = [BitConverter]::ToString($crypto.ComputeHash($fs)).Replace("-", "")
|
|
||||||
$fs.Close()
|
|
||||||
if ($hash -ne $Expected) {
|
|
||||||
Write-Error "Checksum verification failed, got: '$hash' expected: '$Expected'"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Extract-Zip
|
|
||||||
{
|
|
||||||
Param (
|
|
||||||
[string]$Source,
|
|
||||||
[string]$Destination
|
|
||||||
)
|
|
||||||
echo "Extracting '$Source' to '$Destination'..."
|
|
||||||
|
|
||||||
New-Item -ItemType Directory -Force -Path $Destination
|
|
||||||
$shell = new-object -com shell.application
|
|
||||||
$zipfile = $shell.Namespace($Source)
|
|
||||||
$destinationFolder = $shell.Namespace($Destination)
|
|
||||||
$destinationFolder.CopyHere($zipfile.Items(), 16)
|
|
||||||
}
|
|
||||||
|
|
||||||
function BadParam
|
|
||||||
{
|
|
||||||
Param ([string]$Description)
|
|
||||||
throw("You must specify $Description")
|
|
||||||
}
|
|
||||||
|
|
||||||
function Download
|
|
||||||
{
|
|
||||||
Param (
|
|
||||||
[string] $OfficialUrl = $(BadParam("the official download URL")),
|
|
||||||
[string] $CachedUrl = $(BadParam("the locally cached URL")),
|
|
||||||
[string] $Destination = $(BadParam("a download target location"))
|
|
||||||
)
|
|
||||||
try {
|
|
||||||
Invoke-WebRequest -UseBasicParsing $CachedUrl -OutFile $Destination
|
|
||||||
} catch {
|
|
||||||
Invoke-WebRequest -UseBasicParsing $OfficialUrl -OutFile $Destination
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Add-Path
|
|
||||||
{
|
|
||||||
Param (
|
|
||||||
[string]$Path
|
|
||||||
)
|
|
||||||
echo "Adding $Path to Path"
|
|
||||||
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$Path", [EnvironmentVariableTarget]::Machine)
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# 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")
|
|
||||||
78
coin/provisioning/common/install-jdk.ps1
Normal file
78
coin/provisioning/common/install-jdk.ps1
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\..\common\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Java SE
|
||||||
|
|
||||||
|
$installdir = "C:\Program Files\Java\jdk1.8.0_144"
|
||||||
|
|
||||||
|
$version = "8u144"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = "x64"
|
||||||
|
$sha1 = "adb03bc3f4b40bcb3227687860798981d58e1858"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = "i586"
|
||||||
|
$sha1 = "3b9ab95914514eaefd72b815c5d9dd84c8e216fc"
|
||||||
|
}
|
||||||
|
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\jdk-" + $version + "-windows-" + $arch + ".exe"
|
||||||
|
$official_url = "http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-" + $version + "-windows-" + $arch + ".exe"
|
||||||
|
$javaPackage = "C:\Windows\Temp\jdk-$version.exe"
|
||||||
|
|
||||||
|
echo "Fetching Java SE $version..."
|
||||||
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
|
try {
|
||||||
|
echo "...from local cache"
|
||||||
|
Invoke-WebRequest -UseBasicParsing $url_cache -OutFile $javaPackage
|
||||||
|
} catch {
|
||||||
|
echo "...from oracle.com"
|
||||||
|
$client = new-object System.Net.WebClient
|
||||||
|
$cookie = "oraclelicense=accept-securebackup-cookie"
|
||||||
|
$client.Headers.Add("Cookie", $cookie)
|
||||||
|
$client.DownloadFile($official_url, $javaPackage)
|
||||||
|
|
||||||
|
Invoke-WebRequest -UseBasicParsing $official_url -OutFile $javaPackage
|
||||||
|
}
|
||||||
|
|
||||||
|
Verify-Checksum $javaPackage $sha1
|
||||||
|
|
||||||
|
cmd /c "$javaPackage /s SPONSORS=0"
|
||||||
|
echo "Cleaning $javaPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$javaPackage"
|
||||||
|
|
||||||
|
[Environment]::SetEnvironmentVariable("JAVA_HOME", "$installdir", [EnvironmentVariableTarget]::Machine)
|
||||||
|
Add-Path "$installdir\bin"
|
||||||
|
|
||||||
|
echo "Java SE = $version $arch" >> ~\versions.txt
|
||||||
8
coin/provisioning/qtci-linux-RHEL-7.2-x86_64/09-cmake.sh → coin/provisioning/common/linux/cmake_linux.sh
Normal file → Executable file
8
coin/provisioning/qtci-linux-RHEL-7.2-x86_64/09-cmake.sh → coin/provisioning/common/linux/cmake_linux.sh
Normal file → Executable file
@@ -37,11 +37,11 @@
|
|||||||
|
|
||||||
# CMake is needed for autotests that verify that Qt can be built with CMake
|
# CMake is needed for autotests that verify that Qt can be built with CMake
|
||||||
|
|
||||||
# shellcheck source=../common/InstallFromCompressedFileFromURL.sh
|
# shellcheck source=../unix/InstallFromCompressedFileFromURL.sh
|
||||||
source "${BASH_SOURCE%/*}/../common/InstallFromCompressedFileFromURL.sh"
|
source "${BASH_SOURCE%/*}/../unix/InstallFromCompressedFileFromURL.sh"
|
||||||
|
|
||||||
version="3.6.2"
|
version="3.6.2"
|
||||||
PrimaryUrl="http://ci-files01-hki.ci.local/input/cmake/cmake-3.6.2-Linux-x86_64.tar.gz"
|
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/cmake/cmake-3.6.2-Linux-x86_64.tar.gz"
|
||||||
AltUrl="https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz"
|
AltUrl="https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz"
|
||||||
SHA1="dd9d8d57b66109d4bac6eef9209beb94608a185c"
|
SHA1="dd9d8d57b66109d4bac6eef9209beb94608a185c"
|
||||||
targetFolder="/opt/cmake-$version"
|
targetFolder="/opt/cmake-$version"
|
||||||
@@ -50,4 +50,4 @@ appPrefix="cmake-$version-Linux-x86_64"
|
|||||||
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
|
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
|
||||||
|
|
||||||
echo "Adding $targetFolder/bin to PATH"
|
echo "Adding $targetFolder/bin to PATH"
|
||||||
echo "export PATH=$targetFolder/bin:$PATH" >> ~/.bashrc
|
echo "export PATH=$targetFolder/bin:\$PATH" >> ~/.bashrc
|
||||||
44
coin/provisioning/common/linux/disable-ntp_linux.sh
Executable file
44
coin/provisioning/common/linux/disable-ntp_linux.sh
Executable file
@@ -0,0 +1,44 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2018 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
echo "Disable Network Time Protocol (NTP)"
|
||||||
|
|
||||||
|
if uname -a |grep -q "Ubuntu"; then
|
||||||
|
sudo timedatectl set-ntp false
|
||||||
|
else
|
||||||
|
systemctl &>/dev/null && sudo systemctl disable ntpd || sudo /sbin/chkconfig ntpd off
|
||||||
|
fi
|
||||||
49
coin/provisioning/common/linux/linux-removethemall.sh
Executable file
49
coin/provisioning/common/linux/linux-removethemall.sh
Executable file
@@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script removes preinstalled sw.
|
||||||
|
# NOTE! Make sure that ALL software which are removed here have provision script under platrom folders which calls this script
|
||||||
|
|
||||||
|
function RemoveDir {
|
||||||
|
targetFolder=$1
|
||||||
|
|
||||||
|
if [ -d "$targetFolder" ]; then
|
||||||
|
echo "Removing existing $targetFolder..."
|
||||||
|
sudo rm -fr "$targetFolder"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Android
|
||||||
|
RemoveDir /opt/android
|
||||||
20
coin/provisioning/qtci-linux-Ubuntu-14.04-x86_64/freeopcua.sh → coin/provisioning/common/linux/version.sh
Normal file → Executable file
20
coin/provisioning/qtci-linux-Ubuntu-14.04-x86_64/freeopcua.sh → coin/provisioning/common/linux/version.sh
Normal file → Executable file
@@ -33,17 +33,11 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
sudo apt-get update
|
# This script will print all installed software to provision log.
|
||||||
sudo apt-get install -y libboost-dev libboost-thread-dev libboost-system-dev libboost-program-options-dev libboost-filesystem-dev libxml2-dev libboost-regex-dev
|
# Script needs to be named so that it will be ran at last during provisioning
|
||||||
|
|
||||||
TEMPDIR=$(mktemp --directory) || echo "Failed to create temporary directory"
|
# Print all build machines versions to provision log
|
||||||
trap "sudo rm -fr $TEMPDIR" EXIT
|
echo "*********************************************"
|
||||||
cd $TEMPDIR
|
echo "***** SW VERSIONS *****"
|
||||||
git clone https://github.com/FreeOpcUa/freeopcua.git freeopcua
|
cat ~/versions.txt
|
||||||
cd freeopcua
|
echo "*********************************************"
|
||||||
git checkout 57b6993d39b6761af773fa4fa37c3fbd39c764f1
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ..
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
49
coin/provisioning/common/macos/01-macos-removethemall.sh
Normal file
49
coin/provisioning/common/macos/01-macos-removethemall.sh
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2016 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the test suite of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
function RemoveDir {
|
||||||
|
param=$1
|
||||||
|
|
||||||
|
if [ ! -d $param ]
|
||||||
|
then
|
||||||
|
echo "'$param' don't exists"
|
||||||
|
else
|
||||||
|
echo "Removing $param..."
|
||||||
|
sudo rm -fr $param
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Remove Android
|
||||||
|
param="/opt/android"
|
||||||
|
RemoveDir $param
|
||||||
@@ -0,0 +1,136 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script receives URLs to a compressed file. It then downloads it,
|
||||||
|
# uncompresses it and installs it by default
|
||||||
|
# to /Applications/. This can be overridden by a target parameter.
|
||||||
|
|
||||||
|
# shellcheck source=../unix/try_catch.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
||||||
|
# shellcheck source=../unix/DownloadURL.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||||
|
|
||||||
|
ExceptionDownload=99
|
||||||
|
ExceptionCreateTmpFile=100
|
||||||
|
ExceptionCreateTmpDirectory=101
|
||||||
|
ExceptionUncompress=102
|
||||||
|
ExceptionMoveApp=103
|
||||||
|
ExceptionDeleteTmpFile=104
|
||||||
|
ExceptionRemoveTmpDirectory=105
|
||||||
|
ExceptionUnknownFormat=106
|
||||||
|
|
||||||
|
|
||||||
|
function InstallAppFromCompressedFileFromURL {
|
||||||
|
url=$1
|
||||||
|
url_alt=$2
|
||||||
|
expectedSha1=$3
|
||||||
|
appPrefix=$4
|
||||||
|
target=$5
|
||||||
|
|
||||||
|
if [ "" == "$target" ]; then
|
||||||
|
target="/Applications/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
basefilename=${url##*/}
|
||||||
|
extension=${basefilename##*.}
|
||||||
|
filename=${basefilename%.*}
|
||||||
|
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
||||||
|
extension="tar.gz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Extension for file: $extension"
|
||||||
|
echo "Creating temporary file and directory"
|
||||||
|
targetFile=$(mktemp "$TMPDIR$(uuidgen).$extension") || throw $ExceptionCreateTmpFile
|
||||||
|
# macOS 10.10 mktemp does require prefix
|
||||||
|
if [[ $OSTYPE == "darwin14" ]]; then
|
||||||
|
targetDirectory=$(mktemp -d -t '10.10') || throw $ExceptionCreateTmpDirectory
|
||||||
|
else
|
||||||
|
targetDirectory=$(mktemp -d) || throw $ExceptionCreateTmpDirectory
|
||||||
|
fi
|
||||||
|
(DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile") || throw $ExceptionDownload
|
||||||
|
echo "Uncompress $targetFile"
|
||||||
|
case $extension in
|
||||||
|
"tar.gz")
|
||||||
|
tar -xzf "$targetFile" --directory "$targetDirectory" || throw $ExceptionUncompress
|
||||||
|
;;
|
||||||
|
"zip")
|
||||||
|
unzip "$targetFile" -d "$targetDirectory" || throw $ExceptionUncompress
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
throw $ExceptionUnknownFormat
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo "Moving app to '$target'"
|
||||||
|
sudo mv "$targetDirectory/$appPrefix/"* "$target" || throw $ExceptionMoveApp
|
||||||
|
echo "Removing file '$targetFile'"
|
||||||
|
rm "$targetFile" || throw $ExceptionDeleteTmpFile
|
||||||
|
echo "Removing directory '$targetDirectory'"
|
||||||
|
rm -rf "$targetDirectory" || throw $ExceptionRemoveTmpDirectory
|
||||||
|
)
|
||||||
|
|
||||||
|
catch || {
|
||||||
|
case $ex_code in
|
||||||
|
$ExceptionDownload)
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionCreateTmpFile)
|
||||||
|
echo "Failed to create temporary file"
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionUncompress)
|
||||||
|
echo "Failed extracting compressed file."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionMoveApp)
|
||||||
|
echo "Failed moving app to '$target'."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionDeleteTmpFile)
|
||||||
|
echo "Failed deleting temporary file."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionRemoveTmpDirectory)
|
||||||
|
echo "Failed deleting temporary file."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionUnknownFormat)
|
||||||
|
echo "Unknown file format."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
}
|
||||||
104
coin/provisioning/common/macos/InstallPKGFromURL.sh
Normal file
104
coin/provisioning/common/macos/InstallPKGFromURL.sh
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# shellcheck source=../unix/try_catch.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
||||||
|
|
||||||
|
ExceptionCreateTmpFile=100
|
||||||
|
ExceptionDownloadPrimaryUrl=101
|
||||||
|
ExceptionDownloadAltUrl=102
|
||||||
|
ExceptionSHA1=103
|
||||||
|
ExceptionInstallerPKG=104
|
||||||
|
ExceptionDeleteTmpFile=105
|
||||||
|
|
||||||
|
|
||||||
|
function InstallPKGFromURL {
|
||||||
|
url=$1
|
||||||
|
url_alt=$2
|
||||||
|
expectedSha1=$3
|
||||||
|
targetDirectory=$4
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
echo "Creating temporary file"
|
||||||
|
targetFile=$(mktemp "$TMPDIR$(uuidgen).pkg") || trow $ExceptionCreateTmpFile
|
||||||
|
try
|
||||||
|
(
|
||||||
|
echo "Downloading PKG from primary URL '$url'"
|
||||||
|
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || throw $ExceptionDownloadPrimaryUrl
|
||||||
|
)
|
||||||
|
catch || {
|
||||||
|
case $ex_code in
|
||||||
|
$ExceptionDownloadPrimaryUrl)
|
||||||
|
echo "Failed to download '$url' multiple times"
|
||||||
|
echo "Downloading PKG from alternative URL '$url_alt'"
|
||||||
|
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt" || throw $ExceptionDownloadAltUrl
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
echo "Checking SHA1 on PKG '$targetFile'"
|
||||||
|
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
||||||
|
/usr/bin/shasum --check $targetFile.sha1 || throw $ExceptionSHA1
|
||||||
|
echo "Run installer on PKG"
|
||||||
|
sudo installer -package "$targetFile" -target "$targetDirectory" || throw $ExceptionInstallerPKG
|
||||||
|
echo "Removing file '$targetFile'"
|
||||||
|
rm "$targetFile" || throw $ExceptionDeleteTmpFile
|
||||||
|
)
|
||||||
|
|
||||||
|
catch || {
|
||||||
|
case $ex_code in
|
||||||
|
$ExceptionCreateTmpFile)
|
||||||
|
echo "Failed to create temporary file"
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionDownloadAltUrl)
|
||||||
|
echo "Failed downloading PKG from primary and alternative URLs"
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionSHA1)
|
||||||
|
echo "Failed to check sha1sum."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionInstallerPKG)
|
||||||
|
echo "Failed running installer on PKG."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionDeleteTmpFile)
|
||||||
|
echo "Failed deleting temporary file."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
}
|
||||||
51
coin/provisioning/common/macos/cmake.sh
Executable file
51
coin/provisioning/common/macos/cmake.sh
Executable file
@@ -0,0 +1,51 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script installs CMake
|
||||||
|
|
||||||
|
# CMake is needed for autotests that verify that Qt can be built with CMake
|
||||||
|
|
||||||
|
# shellcheck source=./InstallAppFromCompressedFileFromURL.sh
|
||||||
|
source "${BASH_SOURCE%/*}/InstallAppFromCompressedFileFromURL.sh"
|
||||||
|
|
||||||
|
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/osx_10.11_el_capitan/cmake-3.6.2-Darwin-x86_64.tar.gz"
|
||||||
|
AltUrl="https://cmake.org/files/v3.6/cmake-3.6.2-Darwin-x86_64.tar.gz"
|
||||||
|
SHA1="13835afa3aea939e07a7ecccedcc041dd8c3a86e"
|
||||||
|
appPrefix="cmake-3.6.2-Darwin-x86_64"
|
||||||
|
|
||||||
|
InstallAppFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$appPrefix"
|
||||||
|
|
||||||
|
echo "export PATH=/Applications/CMake.app/Contents/bin:\$PATH" >> ~/.bashrc
|
||||||
|
echo "CMake = 3.6.2" >> ~/versions.txt
|
||||||
3
coin/provisioning/common/macos/homebrew.sh
Executable file
3
coin/provisioning/common/macos/homebrew.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Will install homebrew package manager for macOS
|
||||||
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" </dev/null
|
||||||
88
coin/provisioning/common/macos/install-commandlinetools.sh
Normal file
88
coin/provisioning/common/macos/install-commandlinetools.sh
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the test suite of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||||
|
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
# Command line tools is need by Homebrew
|
||||||
|
|
||||||
|
function InstallCommandLineTools {
|
||||||
|
|
||||||
|
ExceptionMount=101
|
||||||
|
ExceptionInstall=102
|
||||||
|
ExceptionUnmount=103
|
||||||
|
|
||||||
|
url=$1
|
||||||
|
url_alt=$2
|
||||||
|
expectedSha1=$3
|
||||||
|
packageName=$4
|
||||||
|
version=$5
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
DownloadURL $url $url_alt $expectedSha1 /tmp/$packageName
|
||||||
|
echo "Mounting $packageName"
|
||||||
|
hdiutil attach /tmp/$packageName || throw $ExceptionMount
|
||||||
|
cd "/Volumes/Command Line Developer Tools"
|
||||||
|
echo "Installing"
|
||||||
|
sudo installer -verbose -pkg *.pkg -target / || throw $ExceptionInstall
|
||||||
|
cd /
|
||||||
|
# Let's fait for 5 second before unmounting. Sometimes resource is busy and cant be unmounted
|
||||||
|
sleep 3
|
||||||
|
echo "Unmounting"
|
||||||
|
umount /Volumes/Command\ Line\ Developer\ Tools/ || throw $ExceptionUnmount
|
||||||
|
echo "Removing $packageName"
|
||||||
|
rm /tmp/$packageName
|
||||||
|
|
||||||
|
echo "Command Line Tools = $version" >> ~/versions.txt
|
||||||
|
)
|
||||||
|
catch || {
|
||||||
|
case $ex_code in
|
||||||
|
$ExceptionMount)
|
||||||
|
echo "Failed to mount."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionInstall)
|
||||||
|
echo "Failed to install command line tools."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionUnmount)
|
||||||
|
echo "Failed to unmount."
|
||||||
|
exit 1;
|
||||||
|
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
91
coin/provisioning/common/macos/install_xcode.sh
Executable file
91
coin/provisioning/common/macos/install_xcode.sh
Executable file
@@ -0,0 +1,91 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script installs Xcode
|
||||||
|
# Prerequisites: Have Xcode prefetched to local cache as xz compressed.
|
||||||
|
# This can be achieved by fetching Xcode_8.xip from Apple Store.
|
||||||
|
# Uncompress it with 'xar -xf Xcode_8.xip'
|
||||||
|
# Then get https://gist.githubusercontent.com/pudquick/ff412bcb29c9c1fa4b8d/raw/24b25538ea8df8d0634a2a6189aa581ccc6a5b4b/parse_pbzx2.py
|
||||||
|
# with which you can run 'python parse_pbzx2.py Content'.
|
||||||
|
# This will give you a file called "Content.part00.cpio.xz" that
|
||||||
|
# can be renamed to Xcode_8.xz for this script.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# shellcheck source=../unix/try_catch.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
||||||
|
|
||||||
|
function InstallXCode()
|
||||||
|
{
|
||||||
|
ExceptionCPIO=103
|
||||||
|
ExceptionAcceptLicense=105
|
||||||
|
ExceptionDeveloperMode=113
|
||||||
|
|
||||||
|
sourceFile=$1
|
||||||
|
version=$2
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
echo "Uncompressing and installing '$sourceFile'"
|
||||||
|
xzcat < "$sourceFile" | (cd /Applications/ && sudo cpio -dmi) || throw $ExceptionCPIO
|
||||||
|
|
||||||
|
echo "Accept license"
|
||||||
|
sudo xcodebuild -license accept || throw $ExceptionAcceptLicense
|
||||||
|
|
||||||
|
echo "Enabling developer mode, so that using lldb does not require interactive password entry"
|
||||||
|
sudo /usr/sbin/DevToolsSecurity -enable || throw $ExceptionDeveloperMode
|
||||||
|
|
||||||
|
echo "Xcode = $version" >> ~/versions.txt
|
||||||
|
)
|
||||||
|
catch || {
|
||||||
|
case $ex_code in
|
||||||
|
$ExceptionCPIO)
|
||||||
|
echo "Failed to unarchive .cpio."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionDeveloperMode)
|
||||||
|
echo "Failed to enable developer mode."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionAcceptLicense)
|
||||||
|
echo "Failed to accept license."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
52
coin/provisioning/common/macos/python3.sh
Executable file
52
coin/provisioning/common/macos/python3.sh
Executable file
@@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Copyright (C) 2017 Pelagicore AG
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script installs python3
|
||||||
|
|
||||||
|
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
||||||
|
|
||||||
|
PrimaryUrl="http://ci-files01-hki.ci.local/input/mac/python-3.6.1-macosx10.6.pkg"
|
||||||
|
AltUrl="https://www.python.org/ftp/python/3.6.1/python-3.6.1-macosx10.6.pkg"
|
||||||
|
SHA1="ae0c749544c2d573c3cc29c4c2d7d9a595db28f9"
|
||||||
|
DestDir="/"
|
||||||
|
|
||||||
|
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
||||||
|
|
||||||
|
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3 install virtualenv
|
||||||
|
|
||||||
|
echo "export PYTHON3_PATH=/Library/Frameworks/Python.framework/Versions/3.6/bin" >> ~/.bashrc
|
||||||
|
echo "export PIP3_PATH=/Library/Frameworks/Python.framework/Versions/3.6/bin" >> ~/.bashrc
|
||||||
|
echo "python3 = 3.6.1" >> ~/versions.txt
|
||||||
40
coin/provisioning/common/macos/system_updates.sh
Executable file
40
coin/provisioning/common/macos/system_updates.sh
Executable file
@@ -0,0 +1,40 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# Disable "Download newly available updates in the background" from App Store
|
||||||
|
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -boolean FALSE
|
||||||
|
|
||||||
|
# Disable "Install system data files and security updates" from App Store
|
||||||
|
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -boolean FALSE
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
. "$PSScriptRoot\helpers.ps1"
|
|
||||||
|
|
||||||
$installer = "c:\users\qt\downloads\rubyinstaller-2.3.1.exe"
|
|
||||||
|
|
||||||
Download https://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.3.1.exe http://ci-files01-hki.ci.local/input/ruby/rubyinstaller-2.3.1.exe $installer
|
|
||||||
Verify-Checksum $installer "FF377F6F313849C3B0CD72EEC1EFFA436F0E4A36"
|
|
||||||
& $installer /DIR=C:\ruby /VERYSILENT
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
network_test_server_ip=10.212.2.216
|
||||||
@@ -70,7 +70,8 @@ function DownloadURL {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
echo "Checking SHA1 on PKG '$targetFile'"
|
echo "Checking SHA1 on PKG '$targetFile'"
|
||||||
echo "$expectedSha1 *$targetFile" | shasum --check || throw $ExceptionSHA1
|
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
||||||
|
shasum --check $targetFile.sha1 || throw $ExceptionSHA1
|
||||||
)
|
)
|
||||||
|
|
||||||
catch || {
|
catch || {
|
||||||
@@ -79,6 +80,10 @@ function DownloadURL {
|
|||||||
echo "Failed downloading PKG from primary and alternative URLs"
|
echo "Failed downloading PKG from primary and alternative URLs"
|
||||||
exit 1;
|
exit 1;
|
||||||
;;
|
;;
|
||||||
|
$ExceptionSHA1)
|
||||||
|
echo "Failed checksum on $targetFile."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
40
coin/provisioning/common/unix/disable-ntp_macos.sh
Executable file
40
coin/provisioning/common/unix/disable-ntp_macos.sh
Executable file
@@ -0,0 +1,40 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2018 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
echo "Disable Network Time Protocol (NTP)"
|
||||||
|
echo "sudo launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist" >> /Users/qt/.bash_profile
|
||||||
|
|
||||||
72
coin/provisioning/common/unix/libclang.sh
Executable file
72
coin/provisioning/common/unix/libclang.sh
Executable file
@@ -0,0 +1,72 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# PySide versions following 5.6 use a C++ parser based on Clang (http://clang.org/).
|
||||||
|
# The Clang library (C-bindings), version 3.9 or higher is required for building.
|
||||||
|
|
||||||
|
# This same script is used to provision libclang to Linux and macOS.
|
||||||
|
# In case of Linux, we expect to get the values as args
|
||||||
|
set -e
|
||||||
|
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
url=$1
|
||||||
|
sha1=$2
|
||||||
|
version=$3
|
||||||
|
if [ $# -eq 0 ]
|
||||||
|
then
|
||||||
|
# The default values are for macOS package
|
||||||
|
echo "Using macOS defaults"
|
||||||
|
version="4.0"
|
||||||
|
url="https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_${version//\./}-mac.7z"
|
||||||
|
sha1="4781d154b274b2aec99b878c364f0ea80ff00a80"
|
||||||
|
fi
|
||||||
|
|
||||||
|
zip="libclang.7z"
|
||||||
|
destination="/usr/local/libclang-$version"
|
||||||
|
|
||||||
|
curl --fail -L --retry 5 --retry-delay 5 -o "$zip" "$url"
|
||||||
|
_shasum=sha1sum
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
echo "DARWIN"
|
||||||
|
_shasum=/usr/bin/shasum
|
||||||
|
fi
|
||||||
|
echo "$sha1 $zip" | $_shasum --check
|
||||||
|
7z x $zip -o/tmp/
|
||||||
|
rm -rf $zip
|
||||||
|
|
||||||
|
sudo mv /tmp/libclang $destination
|
||||||
|
|
||||||
|
echo "export LLVM_INSTALL_DIR=$destination" >> ~/.bash_profile
|
||||||
|
echo "libClang = $version" >> ~/versions.txt
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script allows the Windows Remote Desktop Access
|
||||||
|
|
||||||
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
|
||||||
59
coin/provisioning/common/windows/cmake.ps1
Normal file
59
coin/provisioning/common/windows/cmake.ps1
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
$majorminorversion = "3.6"
|
||||||
|
$version = "3.6.2"
|
||||||
|
|
||||||
|
$zip = "c:\users\qt\downloads\cmake-" + $version + "-win32-x86.zip"
|
||||||
|
$officialurl = "https://cmake.org/files/v" + $majorminorversion + "/cmake-" + $version + "-win32-x86.zip"
|
||||||
|
$cachedurl = "\\ci-files01-hki.intra.qt.io\provisioning\cmake\cmake-" + $version + "-win32-x86.zip"
|
||||||
|
|
||||||
|
Download $officialurl $cachedurl $zip
|
||||||
|
Verify-Checksum $zip "541F6E7EFD228E46770B8631FFE57097576E4D4E"
|
||||||
|
|
||||||
|
Extract-Zip $zip C:
|
||||||
|
# TODO: Remove line below after all Windows TIER2 VMs are based on vanilla OS
|
||||||
|
if((Test-Path -Path "C:\CMake" )){
|
||||||
|
try {
|
||||||
|
Rename-Item -ErrorAction 'Stop' "C:\CMake" C:\CMake_old
|
||||||
|
} catch {}
|
||||||
|
}
|
||||||
|
$defaultinstallfolder = "C:\cmake-" + $version + "-win32-x86"
|
||||||
|
Rename-Item $defaultinstallfolder C:\CMake
|
||||||
|
|
||||||
|
Add-Path "C:\CMake\bin"
|
||||||
|
|
||||||
|
echo "CMake = $version" >> ~\versions.txt
|
||||||
|
|
||||||
2
coin/provisioning/common/windows/disable-ntp.ps1
Normal file
2
coin/provisioning/common/windows/disable-ntp.ps1
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Disable the NTP from syncing
|
||||||
|
w32tm /config /syncfromflags:NO
|
||||||
39
coin/provisioning/common/windows/disable-sleep.ps1
Normal file
39
coin/provisioning/common/windows/disable-sleep.ps1
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script prevents Windows from going to sleep
|
||||||
|
|
||||||
|
powercfg -change -monitor-timeout-ac 0
|
||||||
|
powercfg -change -standby-timeout-ac 0
|
||||||
|
powercfg -change -disk-timeout-ac 0
|
||||||
|
powercfg -change -hibernate-timeout-ac 0
|
||||||
36
coin/provisioning/common/windows/disable-uac.ps1
Normal file
36
coin/provisioning/common/windows/disable-uac.ps1
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script disables the Windows UAC
|
||||||
|
|
||||||
|
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
|
||||||
54
coin/provisioning/common/windows/disable-windows-updates.ps1
Normal file
54
coin/provisioning/common/windows/disable-windows-updates.ps1
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script disables the automatic Windows updates
|
||||||
|
|
||||||
|
$service = get-service wuauserv
|
||||||
|
if (-not $service) {
|
||||||
|
Write-Host "Windows Update service not found."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($service.Status -eq "Stopped") {
|
||||||
|
Write-Host "Windows Update service already stopped."
|
||||||
|
} else {
|
||||||
|
Write-Host "Stopping Windows Update service."
|
||||||
|
stop-service wuauserv
|
||||||
|
}
|
||||||
|
|
||||||
|
$startup = Get-WmiObject Win32_Service | Where-Object {$_.Name -eq "wuauserv"} | Select -ExpandProperty "StartMode"
|
||||||
|
if ($startup -ne "Disabled") {
|
||||||
|
set-service wuauserv -startup disabled
|
||||||
|
} else {
|
||||||
|
Write-Host "Windows Update service startup already disabled."
|
||||||
|
}
|
||||||
114
coin/provisioning/common/windows/helpers.ps1
Normal file
114
coin/provisioning/common/windows/helpers.ps1
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
function Verify-Checksum
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string]$File=$(throw("You must specify a filename to get the checksum of.")),
|
||||||
|
[string]$Expected=$(throw("Checksum required")),
|
||||||
|
[ValidateSet("sha1","md5")][string]$Algorithm="sha1"
|
||||||
|
)
|
||||||
|
$fs = new-object System.IO.FileStream $File, "Open"
|
||||||
|
$algo = [type]"System.Security.Cryptography.$Algorithm"
|
||||||
|
$crypto = $algo::Create()
|
||||||
|
$hash = [BitConverter]::ToString($crypto.ComputeHash($fs)).Replace("-", "")
|
||||||
|
$fs.Close()
|
||||||
|
if ($hash -ne $Expected) {
|
||||||
|
Write-Error "Checksum verification failed, got: '$hash' expected: '$Expected'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function Extract-Zip
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string]$Source,
|
||||||
|
[string]$Destination
|
||||||
|
)
|
||||||
|
echo "Extracting '$Source' to '$Destination'..."
|
||||||
|
|
||||||
|
New-Item -ItemType Directory -Force -Path $Destination
|
||||||
|
$shell = new-object -com shell.application
|
||||||
|
$zipfile = $shell.Namespace($Source)
|
||||||
|
$destinationFolder = $shell.Namespace($Destination)
|
||||||
|
$destinationFolder.CopyHere($zipfile.Items(), 16)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Extract-Dev-Folders-From-Zip
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string]$package,
|
||||||
|
[string]$zipDir,
|
||||||
|
[string]$installPath
|
||||||
|
)
|
||||||
|
|
||||||
|
$shell = new-object -com shell.application
|
||||||
|
|
||||||
|
echo "Extracting contents of $package"
|
||||||
|
foreach ($subDir in "lib", "include", "bin", "share") {
|
||||||
|
$zip = $shell.Namespace($package + "\" + $zipDir + "\" + $subDir)
|
||||||
|
if ($zip) {
|
||||||
|
Write-Host "Extracting $subDir from zip archive"
|
||||||
|
} else {
|
||||||
|
Write-Host "$subDir is missing from zip archive - skipping"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
$destDir = $installPath + "\" + $subdir
|
||||||
|
New-Item $destDir -type directory
|
||||||
|
$destinationFolder = $shell.Namespace($destDir)
|
||||||
|
$destinationFolder.CopyHere($zip.Items(), 16)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function BadParam
|
||||||
|
{
|
||||||
|
Param ([string]$Description)
|
||||||
|
throw("You must specify $Description")
|
||||||
|
}
|
||||||
|
|
||||||
|
function Download
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string] $OfficialUrl = $(BadParam("the official download URL")),
|
||||||
|
[string] $CachedUrl = $(BadParam("the locally cached URL")),
|
||||||
|
[string] $Destination = $(BadParam("a download target location"))
|
||||||
|
)
|
||||||
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
|
try {
|
||||||
|
if ($CachedUrl.StartsWith("http")) {
|
||||||
|
Invoke-WebRequest -UseBasicParsing $CachedUrl -OutFile $Destination
|
||||||
|
} else {
|
||||||
|
Copy-Item $CachedUrl $Destination
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
Invoke-WebRequest -UseBasicParsing $OfficialUrl -OutFile $Destination
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function Set-EnvironmentVariable
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string]$Key = $(BadParam("a key")),
|
||||||
|
[string]$Value = $(BadParam("a value."))
|
||||||
|
)
|
||||||
|
Write-Host "Setting environment variable `"$($Key)`" to `"$($Value)`""
|
||||||
|
|
||||||
|
[Environment]::SetEnvironmentVariable($Key, $Value, [EnvironmentVariableTarget]::Machine)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Add-Path
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string]$Path
|
||||||
|
)
|
||||||
|
echo "Adding $Path to Path"
|
||||||
|
|
||||||
|
$oldPath = [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||||
|
[Environment]::SetEnvironmentVariable("Path", $oldPath + ";$Path", [EnvironmentVariableTarget]::Machine)
|
||||||
|
}
|
||||||
|
|
||||||
|
function is64bitWinHost
|
||||||
|
{
|
||||||
|
if(($env:PROCESSOR_ARCHITECTURE -eq "AMD64") -or ($env:PROCESSOR_ARCHITEW6432 -eq "AMD64")) {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
}
|
||||||
125
coin/provisioning/common/windows/icu.ps1
Normal file
125
coin/provisioning/common/windows/icu.ps1
Normal file
@@ -0,0 +1,125 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script installs ICU.
|
||||||
|
|
||||||
|
$version = "53_1"
|
||||||
|
|
||||||
|
if(($env:PROCESSOR_ARCHITECTURE -eq "AMD64") -or ($env:PROCESSOR_ARCHITEW6432 -eq "AMD64")) {
|
||||||
|
|
||||||
|
$url_official_2012 = "http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2012/icu_" + $version + "_msvc_2012_64_devel.7z"
|
||||||
|
$url_cache_2012 = "\\ci-files01-hki.intra.qt.io\provisioning\windows\icu_" + $version + "_msvc_2012_64_devel.7z"
|
||||||
|
$sha1_2012 = "8A8C371F3ED58E81BBCF58CF5F8388CEF51FA9AC"
|
||||||
|
|
||||||
|
$url_official_2013 = "http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2013/icu_" + $version + "_msvc_2013_64_devel.7z"
|
||||||
|
$url_cache_2013 = "\\ci-files01-hki.intra.qt.io/provisioning/windows/icu_" + $version + "_msvc_2013_64_devel.7z"
|
||||||
|
$sha1_2013 = "7267CF8C5BD39C4218F2CCFE31ECA81B7644ED6F"
|
||||||
|
|
||||||
|
$icuPackage_msvc2012_64 = "C:\Windows\Temp\icu-$version-msvc2012_64.7z"
|
||||||
|
$icuPackage_msvc2013_64 = "C:\Windows\Temp\icu-$version-msvc2013_64.7z"
|
||||||
|
|
||||||
|
if (!(Test-Path C:\Utils\icu_"$version"_msvc_2012_64_devel\)) {
|
||||||
|
echo "Fetching from URL ..."
|
||||||
|
Download $url_official_2012 $url_cache_2012 $icuPackage_msvc2012_64
|
||||||
|
Verify-Checksum $icuPackage_msvc2012_64 $sha1_2012
|
||||||
|
Get-ChildItem $icuPackage_msvc2012_64 | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o""C:\Utils\icu_"$version"_msvc_2012_64_devel\""}
|
||||||
|
|
||||||
|
echo "Cleaning $icuPackage_msvc2012_64..."
|
||||||
|
Remove-Item -Recurse -Force $icuPackage_msvc2012_64
|
||||||
|
|
||||||
|
echo "ICU MSVC2012 = $version" >> ~\versions.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(Test-Path C:\Utils\icu_"$version"_msvc_2013_64_devel\)) {
|
||||||
|
echo "Fetching from URL ..."
|
||||||
|
Download $url_official_2013 $url_cache_2013 $icuPackage_msvc2013_64
|
||||||
|
Verify-Checksum $icuPackage_msvc2013_64 $sha1_2013
|
||||||
|
Get-ChildItem $icuPackage_msvc2013_64 | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o""C:\Utils\icu_"$version"_msvc_2013_64_devel\""}
|
||||||
|
|
||||||
|
echo "Cleaning $icuPackage_msvc2013_64..."
|
||||||
|
Remove-Item -Recurse -Force $icuPackage_msvc2013_64
|
||||||
|
|
||||||
|
echo "ICU MSVC2013 = $version" >> ~\versions.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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")
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$url_official_2012_32 = "http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2012/icu_" + $version + "_msvc_2012_32_devel.7z"
|
||||||
|
$url_cache_2012_32 = "\\ci-files01-hki.intra.qt.io\provisioning\windows\icu_" + $version + "_msvc_2012_32_devel.7z"
|
||||||
|
$sha1_2012_32 = "F2FF287EEB0163B015D37AE08871165FBA87BCF0"
|
||||||
|
|
||||||
|
$url_official_2013_32 = "http://download.qt.io/development_releases/prebuilt/icu/prebuilt/msvc2013/icu_" + $version + "_msvc_2013_32_devel.7z"
|
||||||
|
$url_cache_2013_32 = "\\ci-files01-hki.intra.qt.io/provisioning/windows/icu_" + $version + "_msvc_2013_32_devel.7z"
|
||||||
|
$sha1_2013_32 = "D745A5F0F6A3817AE989501A01A5A0BA53FDB800"
|
||||||
|
|
||||||
|
$icuPackage_msvc2012_32 = "C:\Windows\Temp\icu-$version-msvc2012_32.7z"
|
||||||
|
$icuPackage_msvc2013_32 = "C:\Windows\Temp\icu-$version-msvc2013_32.7z"
|
||||||
|
|
||||||
|
if (!(Test-Path C:\Utils\icu_"$version"_msvc_2012_32_devel\)) {
|
||||||
|
echo "Fetching from URL ..."
|
||||||
|
Download $url_official_2012_32 $url_cache_2012_32 $icuPackage_msvc2012_32
|
||||||
|
Verify-Checksum $icuPackage_msvc2012_32 $sha1_2012_32
|
||||||
|
Get-ChildItem $icuPackage_msvc2012_32 | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o""C:\Utils\icu_"$version"_msvc_2012_32_devel\""}
|
||||||
|
|
||||||
|
echo "Cleaning $icuPackage_msvc2012_32..."
|
||||||
|
Remove-Item -Recurse -Force $icuPackage_msvc2012_32
|
||||||
|
|
||||||
|
echo "ICU MSVC2012 = $version" >> ~\versions.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(Test-Path C:\Utils\icu_"$version"_msvc_2013_32_devel\)) {
|
||||||
|
echo "Fetching from URL ..."
|
||||||
|
Download $url_official_2013_32 $url_cache_2013_32 $icuPackage_msvc2013_32
|
||||||
|
Verify-Checksum $icuPackage_msvc2013_32 $sha1_2013_32
|
||||||
|
Get-ChildItem $icuPackage_msvc2013_32 | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o""C:\Utils\icu_"$version"_msvc_2013_32_devel\""}
|
||||||
|
|
||||||
|
echo "Cleaning $icuPackage_msvc2013_32..."
|
||||||
|
Remove-Item -Recurse -Force $icuPackage_msvc2013_32
|
||||||
|
|
||||||
|
echo "ICU MSVC2013 = $version" >> ~\versions.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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_32_devel\\icu53_1", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("CI_ICU_PATH_MSVC2013", "C:\\Utils\\icu_53_1_msvc_2013_32_devel\\icu53_1", "Machine")
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Dependency Walker 2.2.6000
|
||||||
|
|
||||||
|
$version = "2.2.6000"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = "_x64"
|
||||||
|
$sha1 = "4831D2A8376D64110FF9CD18799FE6C69509D3EA"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = "_x86"
|
||||||
|
$sha1 = "bfec714057e8449b0246051be99ba46a7760bab9"
|
||||||
|
}
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\depends22" + $arch + ".zip"
|
||||||
|
$url_official = "http://www.dependencywalker.com/depends22" + $arch + ".zip"
|
||||||
|
$dependsPackage = "C:\Windows\Temp\depends-$version.zip"
|
||||||
|
|
||||||
|
$TARGETDIR = "C:\Utils\dependencywalker"
|
||||||
|
if(!(Test-Path -Path $TARGETDIR )){
|
||||||
|
New-Item -ItemType directory -Path $TARGETDIR
|
||||||
|
}
|
||||||
|
Download $url_official $url_cache $dependsPackage
|
||||||
|
Verify-Checksum $dependsPackage $sha1
|
||||||
|
|
||||||
|
Get-ChildItem $dependsPackage | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname "-o$TARGETDIR"}
|
||||||
|
|
||||||
|
echo "Cleaning $dependsPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$dependsPackage"
|
||||||
|
|
||||||
|
echo "Dependency Walker = $version" >> ~\versions.txt
|
||||||
57
coin/provisioning/common/windows/install-git.ps1
Normal file
57
coin/provisioning/common/windows/install-git.ps1
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# Install Git version 2.13.0
|
||||||
|
|
||||||
|
$version = "2.13.0"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = "-64-bit"
|
||||||
|
$sha1 = "E1D7C6E5E16ACAF3C108064A2ED158F604FA29A7"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = "-32-bit"
|
||||||
|
$sha1 = "03c7df2e4ef61ea6b6f9c0eb7e6d5151d9682aec"
|
||||||
|
}
|
||||||
|
$gitPackage = "C:\Windows\Temp\Git-" + $version + $arch + ".exe"
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\Git-" + $version + $arch + ".exe"
|
||||||
|
$url_official = "https://github.com/git-for-windows/git/releases/download/v" + $version + ".windows.1/Git-" + $version + $arch + ".exe"
|
||||||
|
|
||||||
|
echo "Fetching Git $version..."
|
||||||
|
Download $url_official $url_cache $gitPackage
|
||||||
|
Verify-Checksum $gitPackage $sha1
|
||||||
|
echo "Installing Git $version..."
|
||||||
|
cmd /c "$gitPackage /SILENT /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh""
|
||||||
|
remove-item $gitPackage
|
||||||
|
|
||||||
|
echo "Git = $version" >> ~\versions.txt
|
||||||
62
coin/provisioning/common/windows/install-java.ps1
Normal file
62
coin/provisioning/common/windows/install-java.ps1
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Java RE
|
||||||
|
# Official Java RE 7 downloads require Oracle accounts. Using local mirrors only.
|
||||||
|
|
||||||
|
$installdir = "C:\Program Files\Java\jre7"
|
||||||
|
|
||||||
|
$version = "7u7"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = "x64"
|
||||||
|
$sha1 = "9af03460c416931bdee18c2dcebff5db50cb8cb3"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = "i586"
|
||||||
|
$sha1 = "f76b1be20b144b1ee1d1de3255edb0a6b57d0219"
|
||||||
|
}
|
||||||
|
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\jre-" + $version + "-windows-" + $arch + ".exe"
|
||||||
|
$javaPackage = "C:\Windows\Temp\java-$version.exe"
|
||||||
|
|
||||||
|
Copy-Item $url_cache $javaPackage
|
||||||
|
cmd /c "$javaPackage /s SPONSORS=0"
|
||||||
|
echo "Cleaning $javaPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$javaPackage"
|
||||||
|
|
||||||
|
[Environment]::SetEnvironmentVariable("JAVA_HOME", "$installdir", [EnvironmentVariableTarget]::Machine)
|
||||||
|
Add-Path "$installdir\bin"
|
||||||
|
|
||||||
|
echo "Java = $version $arch" >> ~\versions.txt
|
||||||
78
coin/provisioning/common/windows/install-jdk.ps1
Normal file
78
coin/provisioning/common/windows/install-jdk.ps1
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Java SE
|
||||||
|
|
||||||
|
$installdir = "C:\Program Files\Java\jdk1.8.0_144"
|
||||||
|
|
||||||
|
$version = "8u144"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = "x64"
|
||||||
|
$sha1 = "adb03bc3f4b40bcb3227687860798981d58e1858"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = "i586"
|
||||||
|
$sha1 = "3b9ab95914514eaefd72b815c5d9dd84c8e216fc"
|
||||||
|
}
|
||||||
|
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\jdk-" + $version + "-windows-" + $arch + ".exe"
|
||||||
|
$official_url = "http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-" + $version + "-windows-" + $arch + ".exe"
|
||||||
|
$javaPackage = "C:\Windows\Temp\jdk-$version.exe"
|
||||||
|
|
||||||
|
echo "Fetching Java SE $version..."
|
||||||
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
|
try {
|
||||||
|
echo "...from local cache"
|
||||||
|
Invoke-WebRequest -UseBasicParsing $url_cache -OutFile $javaPackage
|
||||||
|
} catch {
|
||||||
|
echo "...from oracle.com"
|
||||||
|
$client = new-object System.Net.WebClient
|
||||||
|
$cookie = "oraclelicense=accept-securebackup-cookie"
|
||||||
|
$client.Headers.Add("Cookie", $cookie)
|
||||||
|
$client.DownloadFile($official_url, $javaPackage)
|
||||||
|
|
||||||
|
Invoke-WebRequest -UseBasicParsing $official_url -OutFile $javaPackage
|
||||||
|
}
|
||||||
|
|
||||||
|
Verify-Checksum $javaPackage $sha1
|
||||||
|
|
||||||
|
cmd /c "$javaPackage /s SPONSORS=0"
|
||||||
|
echo "Cleaning $javaPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$javaPackage"
|
||||||
|
|
||||||
|
[Environment]::SetEnvironmentVariable("JAVA_HOME", "$installdir", [EnvironmentVariableTarget]::Machine)
|
||||||
|
Add-Path "$installdir\bin"
|
||||||
|
|
||||||
|
echo "Java SE = $version $arch" >> ~\versions.txt
|
||||||
68
coin/provisioning/common/windows/install-mingw.ps1
Normal file
68
coin/provisioning/common/windows/install-mingw.ps1
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
function InstallMinGW
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string] $release = $(BadParam("release file name")),
|
||||||
|
[string] $sha1 = $(BadParam("SHA1 checksum of the file"))
|
||||||
|
)
|
||||||
|
|
||||||
|
$arch, $version, $null, $threading, $ex_handling, $build_ver, $revision = $release.split('-')
|
||||||
|
|
||||||
|
if ($arch -eq "i686") { $win_arch = "Win32" }
|
||||||
|
elseif ($arch -eq "x86_64") { $win_arch = "Win64" }
|
||||||
|
|
||||||
|
$envvar = "MINGW$version"
|
||||||
|
$envvar = $envvar -replace '["."]'
|
||||||
|
$targetdir = "C:\$envvar"
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\" + $release + ".7z"
|
||||||
|
$url_official = "https://netcologne.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20" + $win_arch + "/Personal%20Builds/mingw-builds/" + $version + "/threads-" + $threading + "/" + $ex_handling + "/" + $arch + "-" + $version + "-release-" + $threading + "-" + $ex_handling + "-" + $build_ver + "-" + $revision + ".7z"
|
||||||
|
|
||||||
|
$mingwPackage = "C:\Windows\Temp\MinGW-$version.zip"
|
||||||
|
Download $url_official $url_cache $mingwPackage
|
||||||
|
Verify-Checksum $mingwPackage $sha1
|
||||||
|
|
||||||
|
Get-ChildItem $mingwPackage | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname "-o$TARGETDIR"}
|
||||||
|
|
||||||
|
echo "Adding MinGW environment variable."
|
||||||
|
[Environment]::SetEnvironmentVariable("$envvar", "$targetdir\mingw32", [EnvironmentVariableTarget]::Machine)
|
||||||
|
|
||||||
|
echo "Cleaning $mingwPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$mingwPackage"
|
||||||
|
|
||||||
|
echo "MinGW = $version $release" >> ~\versions.txt
|
||||||
|
|
||||||
|
}
|
||||||
62
coin/provisioning/common/windows/install-notepad++.ps1
Normal file
62
coin/provisioning/common/windows/install-notepad++.ps1
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Notepad++
|
||||||
|
|
||||||
|
$version = "7.3"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = ".x64"
|
||||||
|
$sha1 = "E7306DF1D6E81801FB4BE0868610DB70E979B0AA"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = ""
|
||||||
|
$sha1 = "d4c403675a21cc381f640b92e596bae3ef958dc6"
|
||||||
|
}
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\npp." + $version + ".Installer" + $arch + ".exe"
|
||||||
|
$url_official = "https://notepad-plus-plus.org/repository/7.x/" + $version + "/npp." + $version + ".Installer" + $arch + ".exe"
|
||||||
|
$nppPackage = "C:\Windows\Temp\npp-$version.exe"
|
||||||
|
|
||||||
|
Download $url_official $url_cache $nppPackage
|
||||||
|
Verify-Checksum $nppPackage $sha1
|
||||||
|
cmd /c "$nppPackage /S"
|
||||||
|
|
||||||
|
echo "Cleaning $nppPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$nppPackage"
|
||||||
|
|
||||||
|
echo "Notepad++ = $version" >> ~\versions.txt
|
||||||
|
|
||||||
|
Rename-Item -Path "C:\Program Files\Notepad++\updater" -NewName "updater_disabled"
|
||||||
|
|
||||||
|
echo "Auto-updating disabled."
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
#############################################################################
|
############################################################################
|
||||||
##
|
##
|
||||||
## Copyright (C) 2016 The Qt Company Ltd.
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
## Contact: http://www.qt.io/licensing/
|
## Contact: http://www.qt.io/licensing/
|
||||||
##
|
##
|
||||||
## This file is part of the test suite of the Qt Toolkit.
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
##
|
##
|
||||||
## $QT_BEGIN_LICENSE:LGPL21$
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
## Commercial License Usage
|
## Commercial License Usage
|
||||||
@@ -31,21 +31,16 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
# Patch QNX SDK due to issues in the standard library.
|
|
||||||
# The patches are available here:
|
|
||||||
# http://www.qnx.com/download/feature.html?programid=27555
|
|
||||||
# A copy of the patch must be in the root of the Coin path in
|
|
||||||
# provisioning/qnx/patch-660-4367-RS6069_cpp-headers.zip
|
|
||||||
|
|
||||||
|
|
||||||
. "$PSScriptRoot\helpers.ps1"
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
$zip = "c:\users\qt\downloads\patch-660-4367-RS6069_cpp-headers.zip"
|
# This script will install QNX 6.6.0
|
||||||
$sha1 = "57A11FFE4434AD567B3C36F7B828DBB468A9E565"
|
|
||||||
$tempDir = "C:\temp\qnx_path"
|
|
||||||
|
|
||||||
Invoke-WebRequest -UseBasicParsing http://${Env:COIN_WEBSERVER_ADDRESS}/coin/provisioning/qnx/patch-660-4367-RS6069_cpp-headers.zip -OutFile $zip
|
$version = "6.6.0"
|
||||||
Verify-Checksum $zip $sha1
|
$nondottedversion = $version -replace '[.]',''
|
||||||
Extract-Zip $zip $tempDir
|
$targetFolder = "c:"
|
||||||
Copy-Item $tempDir\patches\660-4367\target\* C:\qnx660\target\ -recurse -force
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\qnx" + $nondottedversion + "-patch4687-windows.zip"
|
||||||
Remove-Item $tempDir -recurse
|
|
||||||
|
Get-ChildItem $url_cache | % {& "C:\Utils\sevenzip\7z.exe" "x" $_.fullname -o"C:\"}
|
||||||
|
|
||||||
|
[Environment]::SetEnvironmentVariable("QNX_660", "$targetFolder", "Machine")
|
||||||
|
echo "QNX = $version" >> ~\versions.txt
|
||||||
60
coin/provisioning/common/windows/install-ruby.ps1
Normal file
60
coin/provisioning/common/windows/install-ruby.ps1
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will install Ruby
|
||||||
|
|
||||||
|
$version = "2.2.6"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = "-x64"
|
||||||
|
$sha1 = "4D0E366F0264CDED174E5842B2435E22B81FB57A"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = ""
|
||||||
|
$sha1 = "8649309fffe9c746ad5549d3f7b70490806e95df"
|
||||||
|
}
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\rubyinstaller-" + $version + $arch + ".exe"
|
||||||
|
$url_official = "https://bintray.com/oneclick/rubyinstaller/download_file?file_path=rubyinstaller-" + $version + $arch + ".exe"
|
||||||
|
$rubyPackage = "C:\Windows\Temp\rubyinstaller-$version.exe"
|
||||||
|
|
||||||
|
Download $url_official $url_cache $rubyPackage
|
||||||
|
Verify-Checksum $rubyPackage $sha1
|
||||||
|
cmd /c "$rubyPackage /silent"
|
||||||
|
|
||||||
|
echo "Cleaning $rubyPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$rubyPackage"
|
||||||
|
|
||||||
|
Add-Path "C:\Ruby22-x64\bin"
|
||||||
|
|
||||||
|
echo "Ruby = $version" >> ~\versions.txt
|
||||||
60
coin/provisioning/common/windows/install-sevenzip.ps1
Normal file
60
coin/provisioning/common/windows/install-sevenzip.ps1
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script installs 7-Zip
|
||||||
|
|
||||||
|
$version = "1604"
|
||||||
|
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = "-x64"
|
||||||
|
$sha1 = "338A5CC5200E98EDD644FC21807FDBE59910C4D0"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = ""
|
||||||
|
$sha1 = "dd1cb1163c5572951c9cd27f5a8dd550b33c58a4"
|
||||||
|
}
|
||||||
|
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\7z" + $version + $arch + ".exe"
|
||||||
|
$url_official = "http://www.7-zip.org/a/7z" + $version + $arch + ".exe"
|
||||||
|
$7zPackage = "C:\Windows\Temp\7zip-$version.exe"
|
||||||
|
|
||||||
|
Download $url_official $url_cache $7zPackage
|
||||||
|
Verify-Checksum $7zPackage $sha1
|
||||||
|
cmd /c "$7zPackage /S /D=C:\Utils\sevenzip\"
|
||||||
|
|
||||||
|
echo "Cleaning $7zPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$7zPackage"
|
||||||
|
|
||||||
|
echo "7-Zip = $version" >> ~\versions.txt
|
||||||
58
coin/provisioning/common/windows/install-strawberry-perl.ps1
Normal file
58
coin/provisioning/common/windows/install-strawberry-perl.ps1
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script installs Strawberry Perl
|
||||||
|
|
||||||
|
$version = "5.26.0.1"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = "-64bit"
|
||||||
|
$sha1 = "2AE2EDA36A190701399130CBFEE04D00E9BA036D"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = "-32bit"
|
||||||
|
$sha1 = "b50b688a879f33941433774b2813bfd4b917e4ee"
|
||||||
|
}
|
||||||
|
$url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\strawberry-perl-" + $version + $arch + ".msi"
|
||||||
|
$url_official = "http://strawberryperl.com/download/" + $version + "/strawberry-perl-" + $version + $arch + ".msi"
|
||||||
|
$strawberryPackage = "C:\Windows\Temp\strawberry-installer-$version.msi"
|
||||||
|
|
||||||
|
Download $url_official $url_cache $strawberryPackage
|
||||||
|
Verify-Checksum $strawberryPackage $sha1
|
||||||
|
cmd /c "$strawberryPackage /QB INSTALLDIR=C:\strawberry REBOOT=REALLYSUPPRESS"
|
||||||
|
|
||||||
|
echo "Cleaning $strawberryPackage.."
|
||||||
|
Remove-Item -Recurse -Force "$strawberryPackage"
|
||||||
|
|
||||||
|
echo "strawberry = $version" >> ~\versions.txt
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
. "$PSScriptRoot\helpers.ps1"
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
$zip = "c:\users\qt\downloads\jom_1_1_0.zip"
|
$zip = "c:\users\qt\downloads\jom_1_1_2.zip"
|
||||||
|
|
||||||
Invoke-WebRequest -UseBasicParsing http://download.qt.io/official_releases/jom/jom_1_1_0.zip -OutFile $zip
|
Invoke-WebRequest -UseBasicParsing http://download.qt.io/official_releases/jom/jom_1_1_2.zip -OutFile $zip
|
||||||
Verify-Checksum $zip "C4149FE706B25738B4C4E54C73E180B9CAB55832"
|
Verify-Checksum $zip "80EE5678E714DE99DDAF5F7593AB04DB1C7928E4"
|
||||||
Extract-Zip $zip C:\Utils\Jom
|
Extract-Zip $zip C:\Utils\Jom
|
||||||
|
|
||||||
[Environment]::SetEnvironmentVariable("CI_JOM_PATH", "C:\Utils\Jom", "Machine")
|
[Environment]::SetEnvironmentVariable("CI_JOM_PATH", "C:\Utils\Jom", "Machine")
|
||||||
3
coin/provisioning/common/windows/memorypershell.ps1
Normal file
3
coin/provisioning/common/windows/memorypershell.ps1
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# This is needed e.g. for Android NDK installation for Windows 7 x86
|
||||||
|
echo "Increase value of MaxMemoryPerShellMB to avoid 'out of memory' exception"
|
||||||
|
set-item wsman:localhost\Shell\MaxMemoryPerShellMB 2048
|
||||||
63
coin/provisioning/common/windows/mesa_llvmpipe.ps1
Normal file
63
coin/provisioning/common/windows/mesa_llvmpipe.ps1
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
$version = "11_2_2"
|
||||||
|
$package = "C:\Windows\temp\opengl32sw.7z"
|
||||||
|
$mesaOpenglSha1_64 = "b2ffa5f230a0caa2c2e0bb9a5398bcfb81a0e5d1"
|
||||||
|
$mesaOpenglUrl_64 = "http://download.qt.io/development_releases/prebuilt/llvmpipe/windows/opengl32sw-64-mesa_$version.7z"
|
||||||
|
$mesaOpenglSha1_32 = "e742e9d4e16b9c69b6d844940861d3ef1748356b"
|
||||||
|
$mesaOpenglUrl_32 = "http://download.qt.io/development_releases/prebuilt/llvmpipe/windows/opengl32sw-32-mesa_$version.7z"
|
||||||
|
|
||||||
|
function Extract-Mesa
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string]$downloadUrl,
|
||||||
|
[string]$sha1,
|
||||||
|
[string]$targetFolder
|
||||||
|
)
|
||||||
|
Write-Host "Installing Mesa from $downloadUrl to $targetFolder"
|
||||||
|
$localArchivePath = "C:\Windows\temp\opengl32sw.7z"
|
||||||
|
Invoke-WebRequest -UseBasicParsing $downloadUrl -OutFile $localArchivePath
|
||||||
|
Verify-Checksum $localArchivePath $sha1
|
||||||
|
Get-ChildItem $package | % {& "C:\Utils\sevenzip\7z.exe" "x" "-y" $_.fullname "-o$targetFolder"}
|
||||||
|
Remove-Item $localArchivePath
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( Test-Path C:\Windows\SysWOW64 ) {
|
||||||
|
Extract-Mesa $mesaOpenglUrl_64 $mesaOpenglSha1_64 "C:\Windows\sysnative"
|
||||||
|
Extract-Mesa $mesaOpenglUrl_32 $mesaOpenglSha1_32 "C:\Windows\SysWOW64"
|
||||||
|
} else {
|
||||||
|
Extract-Mesa $mesaOpenglUrl_32 $mesaOpenglSha1_32 "C:\Windows\system32"
|
||||||
|
}
|
||||||
|
|
||||||
60
coin/provisioning/common/windows/msvc_2015_update3_patch.ps1
Normal file
60
coin/provisioning/common/windows/msvc_2015_update3_patch.ps1
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# Install Cumulative Servicing Release Visual Studio 2015 update 3
|
||||||
|
# Original download page: https://msdn.microsoft.com/en-us/library/mt752379.aspx
|
||||||
|
|
||||||
|
$version = "2015 update3 (KB3165756)"
|
||||||
|
$package = "C:\Windows\Temp\vs14-kb3165756.exe"
|
||||||
|
$url_cache = "http://ci-files01-hki.intra.qt.io/input/windows/vs14-kb3165756.exe"
|
||||||
|
$url_official = "http://go.microsoft.com/fwlink/?LinkID=816878"
|
||||||
|
$sha1 = "6a21d9b291ca75d44baad95e278fdc0d05d84c02"
|
||||||
|
$preparedPackage="\\ci-files01-hki.intra.qt.io\provisioning\windows\vs14-kb3165756-update"
|
||||||
|
|
||||||
|
if (Test-Path $preparedPackage) {
|
||||||
|
echo "Using prepared package"
|
||||||
|
pushd $preparedPackage
|
||||||
|
$commandLine = "$preparedPackage\vs14-kb3165756.exe"
|
||||||
|
} else {
|
||||||
|
echo "Fetching patch for Visual Studio $version..."
|
||||||
|
Download $url_official $url_cache $package
|
||||||
|
Verify-Checksum $package $sha1
|
||||||
|
$commandLine = $package
|
||||||
|
}
|
||||||
|
echo "Installing patch for Visual Studio $version..."
|
||||||
|
. $commandLine /norestart /passive
|
||||||
|
|
||||||
|
if ($commandLine.StartsWith("C:\Windows")) {
|
||||||
|
remove-item $package
|
||||||
|
}
|
||||||
95
coin/provisioning/common/windows/mysql.ps1
Normal file
95
coin/provisioning/common/windows/mysql.ps1
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script installs MySQL $version.
|
||||||
|
# Both x86 and x64 versions needed when x86 integrations are done on x64 machine
|
||||||
|
|
||||||
|
$version = "5.6.11"
|
||||||
|
$packagex64 = "C:\Windows\temp\mysql-$version-winx64.zip"
|
||||||
|
$packagex86 = "C:\Windows\temp\mysql-$version-win32.zip"
|
||||||
|
|
||||||
|
function DownloadAndInstall
|
||||||
|
{
|
||||||
|
Param (
|
||||||
|
[string]$internalUrl,
|
||||||
|
[string]$package,
|
||||||
|
[string]$installPath
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "Fetching from URL ..."
|
||||||
|
Copy-Item $internalUrl $package
|
||||||
|
|
||||||
|
$zipDir = [io.path]::GetFileNameWithoutExtension($package)
|
||||||
|
Extract-Dev-Folders-From-Zip $package $zipDir $installPath
|
||||||
|
|
||||||
|
Remove-Item $package
|
||||||
|
}
|
||||||
|
|
||||||
|
# Remove any leftovers
|
||||||
|
try {
|
||||||
|
Rename-Item -ErrorAction 'Stop' c:\utils\my_sql c:\utils\mysql_deleted
|
||||||
|
} catch {}
|
||||||
|
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
# Install x64 bit version
|
||||||
|
$architecture = "x64"
|
||||||
|
$installFolder = "C:\Utils\my_sql\my_sql"
|
||||||
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\mysql-$version-winx64.zip"
|
||||||
|
|
||||||
|
DownloadAndInstall $internalUrl $packagex64 $installFolder
|
||||||
|
|
||||||
|
echo "Set environment variables ..."
|
||||||
|
[Environment]::SetEnvironmentVariable("MYSQL_INCLUDE_x64", "$installFolder\include", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("MYSQL_LIB_x64", "$installFolder\lib", "Machine")
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install x86 bit version
|
||||||
|
$architecture = "x86"
|
||||||
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\mysql-$version-win32.zip"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$installFolder = "C:\Utils\my_sql\my_sql$architecture"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$installFolder = "C:\Utils\my_sql\my_sql"
|
||||||
|
}
|
||||||
|
|
||||||
|
DownloadAndInstall $internalUrl $packagex86 $installFolder
|
||||||
|
|
||||||
|
echo "Set environment variables ..."
|
||||||
|
[Environment]::SetEnvironmentVariable("MYSQL_INCLUDE_x86", "$installFolder\include", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("MYSQL_LIB_x86", "$installFolder\lib", "Machine")
|
||||||
|
|
||||||
|
# Store version information to ~/versions.txt, which is used to print version information to provision log.
|
||||||
|
echo "MySQL = $version" >> ~/versions.txt
|
||||||
95
coin/provisioning/common/windows/openssl.ps1
Normal file
95
coin/provisioning/common/windows/openssl.ps1
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script installs OpenSSL $version.
|
||||||
|
# Both x86 and x64 versions needed when x86 integrations are done on x64 machine
|
||||||
|
|
||||||
|
$version = "1_0_2j"
|
||||||
|
$packagex64 = "C:\Windows\Temp\Win64OpenSSL-$version.exe"
|
||||||
|
$packagex86 = "C:\Windows\Temp\Win32OpenSSL-$version.exe"
|
||||||
|
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
|
||||||
|
# Install x64 bit version
|
||||||
|
$architecture = "x64"
|
||||||
|
$installFolder = "C:\openssl"
|
||||||
|
$externalUrl = "https://slproweb.com/download/Win64OpenSSL-$version.exe"
|
||||||
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\openssl\Win64OpenSSL-$version.exe"
|
||||||
|
$sha1 = "b1660dbdcc77e1b3d81d780c7167be1c75384d44"
|
||||||
|
|
||||||
|
echo "Fetching from URL ..."
|
||||||
|
Download $externalUrl $internalUrl $packagex64
|
||||||
|
Verify-Checksum $packagex64 $sha1
|
||||||
|
echo "Installing $packagex64 ..."
|
||||||
|
cmd /c "$packagex64 /SP- /SILENT /LOG /SUPPRESSMSGBOXES /NORESTART /DIR=$installFolder"
|
||||||
|
|
||||||
|
echo "Remove downloaded $packagex64 ..."
|
||||||
|
Remove-Item $packagex64
|
||||||
|
|
||||||
|
echo "Set $architecture environment variables ..."
|
||||||
|
[Environment]::SetEnvironmentVariable("OPENSSL_CONF_x64", "$installFolder\bin\openssl.cfg", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("OPENSSL_INCLUDE_x64", "$installFolder\include", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("OPENSSL_LIB_x64", "$installFolder\lib", "Machine")
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install x86 bit version
|
||||||
|
$architecture = "x86"
|
||||||
|
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$installFolder = "C:\openssl$architecture"
|
||||||
|
} else {
|
||||||
|
$installFolder = "C:\openssl"
|
||||||
|
}
|
||||||
|
|
||||||
|
$externalUrl = "https://slproweb.com/download/Win32OpenSSL-$version.exe"
|
||||||
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\openssl\Win32OpenSSL-$version.exe"
|
||||||
|
$sha1 = "29b31d20545214ab4e4c57afb20be2338c317cc3"
|
||||||
|
|
||||||
|
echo "Fetching from URL ..."
|
||||||
|
Download $externalUrl $internalUrl $packagex86
|
||||||
|
Verify-Checksum $packagex86 $sha1
|
||||||
|
echo "Installing $packagex86 ..."
|
||||||
|
cmd /c "$packagex86 /SP- /SILENT /LOG /SUPPRESSMSGBOXES /NORESTART /DIR=$installFolder"
|
||||||
|
|
||||||
|
echo "Remove downloaded $packagex86 ..."
|
||||||
|
Remove-Item $packagex86
|
||||||
|
|
||||||
|
echo "Set $architecture environment variables ..."
|
||||||
|
[Environment]::SetEnvironmentVariable("OPENSSL_CONF_x86", "$installFolder\bin\openssl.cfg", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("OPENSSL_INCLUDE_x86", "$installFolder\include", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("OPENSSL_LIB_x86", "$installFolder\lib", "Machine")
|
||||||
|
|
||||||
|
# Store version information to ~/versions.txt, which is used to print version information to provision log.
|
||||||
|
echo "OpenSSL = $version" >> ~/versions.txt
|
||||||
97
coin/provisioning/common/windows/postgresql.ps1
Normal file
97
coin/provisioning/common/windows/postgresql.ps1
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script installs postgresql $version.
|
||||||
|
# Both x86 and x64 versions needed when x86 integrations are done on x64 machine
|
||||||
|
|
||||||
|
$version = "9.1.9-1"
|
||||||
|
$packagex64 = "C:\Windows\temp\postgresql-$version-windows-x64-binaries.zip"
|
||||||
|
$packagex86 = "C:\Windows\temp\postgresql-$version-windows-binaries.zip"
|
||||||
|
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
# Install x64 bit versions
|
||||||
|
$architecture = "x64"
|
||||||
|
$installFolder = "C:\Utils\postgresql\pgsql"
|
||||||
|
$externalUrl = "http://get.enterprisedb.com/postgresql/postgresql-$version-windows-x64-binaries.zip"
|
||||||
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\postgresql-$version-windows-x64-binaries.zip"
|
||||||
|
$sha1 = "4da0453cdfda335e064d4437cf5bb9d356054cfd"
|
||||||
|
|
||||||
|
# Delete any leftovers
|
||||||
|
try {
|
||||||
|
Rename-Item -ErrorAction 'Stop' c:\utils\postgresql c:\utils\postgresql-deleted
|
||||||
|
} catch {}
|
||||||
|
|
||||||
|
echo "Fetching from URL ..."
|
||||||
|
Download $externalUrl $internalUrl $packagex64
|
||||||
|
Verify-Checksum $packagex64 $sha1
|
||||||
|
echo "Installing $packagex64 ..."
|
||||||
|
Extract-Dev-Folders-From-Zip $packagex64 "pgsql" $installFolder
|
||||||
|
|
||||||
|
echo "Remove downloaded $packagex64 ..."
|
||||||
|
Remove-Item $packagex64
|
||||||
|
|
||||||
|
echo "Set $architecture environment variables ..."
|
||||||
|
[Environment]::SetEnvironmentVariable("POSTGRESQL_INCLUDE_x64", "$installFolder\include", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("POSTGRESQL_LIB_x64", "$installFolder\lib", "Machine")
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install x86 bit version
|
||||||
|
$architecture = "x86"
|
||||||
|
$externalUrl = "http://get.enterprisedb.com/postgresql/postgresql-$version-windows-binaries.zip"
|
||||||
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\postgresql-$version-windows-binaries.zip"
|
||||||
|
$sha1 = "eb4f01845e1592800edbb74f60944b6c0aca51a9"
|
||||||
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$installFolder = "C:\Utils\postgresql$architecture\pgsql"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$installFolder = "C:\Utils\postgresql\pgsql"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
echo "Fetching from URL..."
|
||||||
|
Download $externalUrl $internalUrl $packagex86
|
||||||
|
Verify-Checksum $packagex86 $sha1
|
||||||
|
echo "Installing $packagex86 ..."
|
||||||
|
Extract-Dev-Folders-From-Zip $packagex86 "pgsql" $installFolder
|
||||||
|
|
||||||
|
echo "Remove downloaded $packagex86 ..."
|
||||||
|
Remove-Item $packagex86
|
||||||
|
|
||||||
|
echo "Set $architecture environment variables ..."
|
||||||
|
[Environment]::SetEnvironmentVariable("POSTGRESQL_INCLUDE_x86", "$installFolder\include", "Machine")
|
||||||
|
[Environment]::SetEnvironmentVariable("POSTGRESQL_LIB_x86", "$installFolder\lib", "Machine")
|
||||||
|
|
||||||
|
# Store version information to ~/versions.txt, which is used to print version information to provision log.
|
||||||
|
echo "PostgreSQL = $version" >> ~/versions.txt
|
||||||
@@ -30,39 +30,37 @@
|
|||||||
## $QT_END_LICENSE$
|
## $QT_END_LICENSE$
|
||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
. "$PSScriptRoot\helpers.ps1"
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
# This script installs Python $version.
|
# This script installs Python $version.
|
||||||
# Python is required for building Qt 5 from source.
|
# Python is required for building Qt 5 from source.
|
||||||
|
|
||||||
$version = "2.7.10"
|
$version = "2.7.13"
|
||||||
$package = "C:\Windows\temp\python-$version.msi"
|
if( (is64bitWinHost) -eq 1 ) {
|
||||||
|
$arch = ".amd64"
|
||||||
# check bit version
|
$sha1 = "d9113142bae8829365c595735e1ad1f9f5e2894c"
|
||||||
if ([System.Environment]::Is64BitProcess -eq $TRUE) {
|
|
||||||
$externalUrl = "https://www.python.org/ftp/python/$version/python-$version.amd64.msi"
|
|
||||||
$internalUrl = "http://ci-files01-hki.ci.local/input/windows/python-$version.amd64.msi"
|
|
||||||
$sha1 = "f3a474f6ab191f9b43034c0fb5c98301553775d4"
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$externalUrl = "https://www.python.org/ftp/python/$version/python-$version.msi"
|
$arch = ""
|
||||||
$internalUrl = "http://ci-files01-hki.ci.local/input/windows/python-$version.msi"
|
$sha1 = "7e3b54236dbdbea8fe2458db501176578a4d59c0"
|
||||||
$sha1 = "9e62f37407e6964ee0374b32869b7b4ab050d12a"
|
|
||||||
}
|
}
|
||||||
|
$package = "C:\Windows\temp\python-$version.msi"
|
||||||
|
$externalUrl = "https://www.python.org/ftp/python/$version/python-$version" + $arch + ".msi"
|
||||||
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\python-$version" + $arch + ".msi"
|
||||||
|
|
||||||
echo "Fetching from URL..."
|
echo "Fetching from URL..."
|
||||||
Download $externalUrl $internalUrl $package
|
Download $externalUrl $internalUrl $package
|
||||||
Verify-Checksum $package $sha1
|
Verify-Checksum $package $sha1
|
||||||
echo "Installing $package..."
|
echo "Installing $package..."
|
||||||
cmd /c "$package /q"
|
cmd /c "msiexec /passive /i $package ALLUSERS=1"
|
||||||
# We need to change allowZip64 from 'False' to 'True' to be able to create ZIP files that use the ZIP64 extensions when the zipfile is larger than 2 GB
|
# We need to change allowZip64 from 'False' to 'True' to be able to create ZIP files that use the ZIP64 extensions when the zipfile is larger than 2 GB
|
||||||
echo "Chancing allowZip64 value to 'True'..."
|
echo "Chancing allowZip64 value to 'True'..."
|
||||||
(Get-Content C:\Python27\lib\zipfile.py) | ForEach-Object { $_ -replace "allowZip64=False", "allowZip64=True" } | Set-Content C:\Python27\lib\zipfile.py
|
(Get-Content C:\Python27\lib\zipfile.py) | ForEach-Object { $_ -replace "allowZip64=False", "allowZip64=True" } | Set-Content C:\Python27\lib\zipfile.py
|
||||||
echo "Remove $package..."
|
echo "Remove $package..."
|
||||||
del $package
|
del $package
|
||||||
Add-Path $path
|
|
||||||
|
|
||||||
& python -m ensurepip
|
Add-Path "C:\Python27;C:\Python27\Scripts"
|
||||||
|
|
||||||
|
C:\Python27\python.exe -m ensurepip
|
||||||
# Install python virtual env
|
# Install python virtual env
|
||||||
pip.exe install virtualenv
|
C:\Python27\Scripts\pip.exe install virtualenv
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/env bash
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
##
|
##
|
||||||
## Copyright (C) 2016 The Qt Company Ltd.
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Copyright (C) 2017 Pelagicore AG
|
||||||
## Contact: http://www.qt.io/licensing/
|
## Contact: http://www.qt.io/licensing/
|
||||||
##
|
##
|
||||||
## This file is part of the test suite of the Qt Toolkit.
|
## This file is part of the test suite of the Qt Toolkit.
|
||||||
@@ -33,32 +32,39 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
# Patch QNX SDK due to issues in the standard library.
|
param([Int32]$archVer=32)
|
||||||
# The patches are available here:
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
# http://www.qnx.com/download/feature.html?programid=27555
|
|
||||||
# A copy of the patch must be in the root of the Coin path in
|
|
||||||
# provisioning/qnx/patch-660-4367-RS6069_cpp-headers.zip
|
|
||||||
|
|
||||||
set -e
|
# This script installs Python $version.
|
||||||
sha1="57a11ffe4434ad567b3c36f7b828dbb468a9e565"
|
# Python3 is required for building some qt modules.
|
||||||
|
|
||||||
function InstallZipPackageFromURL {
|
$version = "3.6.1"
|
||||||
url=$1
|
$package = "C:\Windows\temp\python-$version.exe"
|
||||||
expectedSha1=$2
|
$install_path = "C:\Python36"
|
||||||
targetDirectory=$3
|
|
||||||
|
|
||||||
targetFile=`mktemp` || echo "Failed to create temporary file"
|
# check bit version
|
||||||
wget --tries=5 --waitretry=5 --output-document=$targetFile $url || echo "Failed to download '$url' multiple times"
|
if ( $archVer -eq 64 ) {
|
||||||
echo "$expectedSha1 $targetFile" | sha1sum --check || echo "Failed to check sha1sum"
|
echo "Running in 64 bit system"
|
||||||
|
$externalUrl = "https://www.python.org/ftp/python/$version/python-$version-amd64.exe"
|
||||||
tempDir=`mktemp -d` || echo "Failed to create temporary directory"
|
$internalUrl = "http://ci-files01-hki.ci.local/input/windows/python-$version-amd64.exe"
|
||||||
/usr/bin/unzip -o -d $tempDir $targetFile || echo "Failed to unzip $url archive"
|
$sha1 = "bf54252c4065b20f4a111cc39cf5215fb1edccff"
|
||||||
trap "sudo rm -fr $targetFile $tempDir" EXIT
|
}
|
||||||
|
else {
|
||||||
sudo cp -rafv $tempDir/patches/660-4367/target/* /opt/qnx660/target/
|
$externalUrl = "https://www.python.org/ftp/python/$version/python-$version.exe"
|
||||||
|
$internalUrl = "http://ci-files01-hki.ci.local/input/windows/python-$version.exe"
|
||||||
|
$sha1 = "76c50b747237a0974126dd8b32ea036dd77b2ad1"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Patching QNX"
|
echo "Fetching from URL..."
|
||||||
|
Download $externalUrl $internalUrl $package
|
||||||
|
Verify-Checksum $package $sha1
|
||||||
|
echo "Installing $package..."
|
||||||
|
cmd /c "$package /q TargetDir=$install_path"
|
||||||
|
echo "Remove $package..."
|
||||||
|
del $package
|
||||||
|
|
||||||
baseBinaryPackageURL="http://${COIN_WEBSERVER_ADDRESS}/coin/provisioning/qnx/patch-660-4367-RS6069_cpp-headers.zip"
|
[Environment]::SetEnvironmentVariable("PYTHON3_PATH", "$install_path", [EnvironmentVariableTarget]::Machine)
|
||||||
InstallZipPackageFromURL $baseBinaryPackageURL $sha1 "/opt/qnx660/target/"
|
[Environment]::SetEnvironmentVariable("PIP3_PATH", "$install_path\Scripts", [EnvironmentVariableTarget]::Machine)
|
||||||
|
|
||||||
|
# Install python virtual env
|
||||||
|
cmd /c "$install_path\Scripts\pip3.exe install virtualenv"
|
||||||
42
coin/provisioning/common/windows/set-network-test-server.ps1
Normal file
42
coin/provisioning/common/windows/set-network-test-server.ps1
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script will set the network test server IP in to hosts file
|
||||||
|
|
||||||
|
$n = Get-Content "$PSScriptRoot\..\shared\network_test_server_ip.txt"
|
||||||
|
$n = $n.Split('=')
|
||||||
|
New-Variable -Name $n[0] -Value $n[1]
|
||||||
|
|
||||||
|
Add-Content -Path C:\Windows\System32\drivers\etc\hosts. -Value "$network_test_server_ip qt-test-server qt-test-server.qt-test-net"
|
||||||
64
coin/provisioning/common/windows/vc_redist.ps1
Normal file
64
coin/provisioning/common/windows/vc_redist.ps1
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Copyright (C) 2017 Pelagicore AG
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the test suite of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
param([Int32]$archVer=32)
|
||||||
|
. "$PSScriptRoot\helpers.ps1"
|
||||||
|
|
||||||
|
# This script installs Visual C++ Redistributable for Visual Studio 2015
|
||||||
|
# This is a dependency of the current python3 version
|
||||||
|
|
||||||
|
# check bit version
|
||||||
|
if ( $archVer -eq 64 ) {
|
||||||
|
echo "Running in 64 bit system"
|
||||||
|
$arch = "x64"
|
||||||
|
$externalUrl = "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe"
|
||||||
|
$internalUrl = "http://ci-files01-hki.ci.local/input/windows/vc_redist.x64.exe"
|
||||||
|
$sha1 = "3155cb0f146b927fcc30647c1a904cd162548c8c"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$arch = "x86"
|
||||||
|
$externalUrl = "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe"
|
||||||
|
$internalUrl = "http://ci-files01-hki.ci.local/input/windows/vc_redist.x86.exe"
|
||||||
|
$sha1 = "bfb74e498c44d3a103ca3aa2831763fb417134d1"
|
||||||
|
}
|
||||||
|
|
||||||
|
$package = "C:\Windows\temp\vc_redist.$arch.exe"
|
||||||
|
|
||||||
|
echo "Fetching from URL..."
|
||||||
|
Download $externalUrl $internalUrl $package
|
||||||
|
Verify-Checksum $package $sha1
|
||||||
|
echo "Installing $package..."
|
||||||
|
Start-Process -FilePath $package -ArgumentList "/q" -Wait
|
||||||
|
echo "Remove $package..."
|
||||||
|
del $package
|
||||||
@@ -55,7 +55,9 @@ Function Remove-Path {
|
|||||||
[System.Environment]::SetEnvironmentVariable($name,$value,$type)
|
[System.Environment]::SetEnvironmentVariable($name,$value,$type)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Remove Python
|
# Remove Android sdk and ndk
|
||||||
Remove C:\Python27
|
If (Test-Path "c:\utils") {
|
||||||
Remove-Path C:\python27\scripts
|
dir c:\utils\android* | ForEach { Rename-Item $_ $_"-deleted" }
|
||||||
Remove-Path C:\python27
|
[Environment]::SetEnvironmentVariable("ANDROID_NDK_HOME",$null,"User")
|
||||||
|
[Environment]::SetEnvironmentVariable("ANDROID_SDK_HOME",$null,"User")
|
||||||
|
}
|
||||||
2
coin/provisioning/qtci-linux-OpenSuSE-13.01-x86_64/02-disable-ntp.sh
Executable file
2
coin/provisioning/qtci-linux-OpenSuSE-13.01-x86_64/02-disable-ntp.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source "${BASH_SOURCE%/*}/../common/linux/disable-ntp_linux.sh"
|
||||||
3
coin/provisioning/qtci-linux-RHEL-6.6-x86_64/02-disable-ntp.sh
Executable file
3
coin/provisioning/qtci-linux-RHEL-6.6-x86_64/02-disable-ntp.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source "${BASH_SOURCE%/*}/../common/linux/disable-ntp_linux.sh"
|
||||||
@@ -2,3 +2,17 @@
|
|||||||
# version: provided by default Linux distribution repository
|
# version: provided by default Linux distribution repository
|
||||||
# needed to build pyside
|
# needed to build pyside
|
||||||
sudo yum install -y python-devel python-virtualenv
|
sudo yum install -y python-devel python-virtualenv
|
||||||
|
|
||||||
|
# install the EPEL repository which provides python3
|
||||||
|
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
|
||||||
|
sudo rpm -Uvh epel-release-latest-6.noarch.rpm
|
||||||
|
sudo rm -f epel-release-latest-6.noarch.rpm
|
||||||
|
|
||||||
|
# install python3
|
||||||
|
sudo yum install -y python34-devel
|
||||||
|
|
||||||
|
# install pip3
|
||||||
|
wget https://bootstrap.pypa.io/get-pip.py
|
||||||
|
sudo python3 get-pip.py
|
||||||
|
sudo rm -f get-pip.py
|
||||||
|
sudo pip3 install virtualenv
|
||||||
|
|||||||
@@ -1,53 +1 @@
|
|||||||
#!/bin/bash
|
$(dirname $0)/../common/linux/cmake_linux.sh
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
##
|
|
||||||
## Copyright (C) 2016 The Qt Company Ltd.
|
|
||||||
## Contact: http://www.qt.io/licensing/
|
|
||||||
##
|
|
||||||
## This file is part of the test suite of the Qt Toolkit.
|
|
||||||
##
|
|
||||||
## $QT_BEGIN_LICENSE:LGPL21$
|
|
||||||
## Commercial License Usage
|
|
||||||
## Licensees holding valid commercial Qt licenses may use this file in
|
|
||||||
## accordance with the commercial license agreement provided with the
|
|
||||||
## Software or, alternatively, in accordance with the terms contained in
|
|
||||||
## a written agreement between you and The Qt Company. For licensing terms
|
|
||||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
|
||||||
## information use the contact form at http://www.qt.io/contact-us.
|
|
||||||
##
|
|
||||||
## GNU Lesser General Public License Usage
|
|
||||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
|
||||||
## General Public License version 2.1 or version 3 as published by the Free
|
|
||||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
|
||||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
|
||||||
## following information to ensure the GNU Lesser General Public License
|
|
||||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
|
||||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
||||||
##
|
|
||||||
## As a special exception, The Qt Company gives you certain additional
|
|
||||||
## rights. These rights are described in The Qt Company LGPL Exception
|
|
||||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
||||||
##
|
|
||||||
## $QT_END_LICENSE$
|
|
||||||
##
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
# This script installs CMake 3.6.2
|
|
||||||
|
|
||||||
# CMake is needed for autotests that verify that Qt can be built with CMake
|
|
||||||
|
|
||||||
# shellcheck source=../common/InstallFromCompressedFileFromURL.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/InstallFromCompressedFileFromURL.sh"
|
|
||||||
|
|
||||||
version="3.6.2"
|
|
||||||
PrimaryUrl="http://ci-files01-hki.ci.local/input/cmake/cmake-3.6.2-Linux-x86_64.tar.gz"
|
|
||||||
AltUrl="https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz"
|
|
||||||
SHA1="dd9d8d57b66109d4bac6eef9209beb94608a185c"
|
|
||||||
targetFolder="/opt/cmake-$version"
|
|
||||||
appPrefix="cmake-$version-Linux-x86_64"
|
|
||||||
|
|
||||||
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
|
|
||||||
|
|
||||||
echo "Adding $targetFolder/bin to PATH"
|
|
||||||
echo "export PATH=$targetFolder/bin:$PATH" >> ~/.bashrc
|
|
||||||
|
|||||||
123
coin/provisioning/qtci-linux-RHEL-6.6-x86_64/android_linux.sh
Normal file
123
coin/provisioning/qtci-linux-RHEL-6.6-x86_64/android_linux.sh
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2016 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the test suite of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script install Android sdk and ndk.
|
||||||
|
|
||||||
|
# It also runs update for SDK API level 18, latest SDK tools, latest platform-tools and build-tools version 23.0.3
|
||||||
|
|
||||||
|
# Build-tools version 23.0.3 is the latest usable version for Red Hat 6. Newer version of build-tools, version 24.x.x, requires GLIBC_2.14, which is not available in Red Hat 6.
|
||||||
|
|
||||||
|
# Android 16 is the minimum requirement for Qt 5.7 applications, but we need something more recent than that for building Qt itself.
|
||||||
|
# E.g The Bluetooth features that require Android 18 will disable themselves dynamically when running on an Android 16 device.
|
||||||
|
# That's why we need to use Andoid-18 API version and decision was made to use it also with Qt 5.6.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
targetFolder="/opt/android"
|
||||||
|
baseUrl="http://ci-files01-hki.intra.qt.io/input/android"
|
||||||
|
|
||||||
|
# SDK
|
||||||
|
sdkPackage="android-sdk_r24.4.1-linux.tgz"
|
||||||
|
sdkBuildToolsVersion="23.0.3"
|
||||||
|
sdkApiLevel="android-18"
|
||||||
|
sdkUrl="$baseUrl/$sdkPackage"
|
||||||
|
sdkSha1="725bb360f0f7d04eaccff5a2d57abdd49061326d"
|
||||||
|
sdkTargetFile="$targetFolder/$sdkPackage"
|
||||||
|
sdkExtract="tar -C $targetFolder -zxf $sdkTargetFile"
|
||||||
|
sdkFolderName="android-sdk-linux"
|
||||||
|
sdkName="sdk"
|
||||||
|
|
||||||
|
# NDK
|
||||||
|
ndkVersion="r10e"
|
||||||
|
ndkPackage="android-ndk-$ndkVersion-linux-x86_64.zip"
|
||||||
|
ndkUrl="$baseUrl/$ndkPackage"
|
||||||
|
ndkSha1="f692681b007071103277f6edc6f91cb5c5494a32"
|
||||||
|
ndkTargetFile="$targetFolder/$ndkPackage"
|
||||||
|
ndkExtract="unzip $ndkTargetFile -d $targetFolder"
|
||||||
|
ndkFolderName="android-ndk-$ndkVersion"
|
||||||
|
ndkName="ndk"
|
||||||
|
|
||||||
|
function InstallAndroidPackage {
|
||||||
|
targetFolder=$1
|
||||||
|
version=$2
|
||||||
|
url=$3
|
||||||
|
sha1=$4
|
||||||
|
targetFile=$5
|
||||||
|
extract=$6
|
||||||
|
folderName=$7
|
||||||
|
name=$8
|
||||||
|
|
||||||
|
sudo wget --tries=5 --waitretry=5 --output-document="$targetFile" "$url" || echo "Failed to download '$url' multiple times"
|
||||||
|
echo "$sha1 $targetFile" | sha1sum --check || echo "Failed to check sha1sum"
|
||||||
|
sudo chmod 755 "$targetFile"
|
||||||
|
sudo $extract || echo "Failed to extract $url"
|
||||||
|
sudo chown -R qt:users "$targetFolder"/"$folderName"
|
||||||
|
sudo mv "$targetFolder"/"$folderName" "$targetFolder"/"$name" || echo "Failed to rename $name"
|
||||||
|
sudo rm -fr "$targetFolder"/"$version"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -d "$targetFolder" ]; then
|
||||||
|
echo "Removing old Android installation"
|
||||||
|
sudo rm -fr "$targetFolder" || ( echo "Can't remove $targetFolder" ; exit 1; )
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo mkdir "$targetFolder" || ( echo "Can't create $targetFolder" ; exit 1; )
|
||||||
|
|
||||||
|
# Install Android SDK
|
||||||
|
echo "Installing Android SDK version $sdkPackage..."
|
||||||
|
InstallAndroidPackage "$targetFolder" $sdkPackage $sdkUrl $sdkSha1 $sdkTargetFile "$sdkExtract" $sdkFolderName $sdkName
|
||||||
|
|
||||||
|
# Install Android NDK
|
||||||
|
echo "Installing Android NDK version $ndkPackage..."
|
||||||
|
InstallAndroidPackage "$targetFolder" $ndkPackage $ndkUrl $ndkSha1 $ndkTargetFile "$ndkExtract" $ndkFolderName $ndkName
|
||||||
|
|
||||||
|
# run update for Android SDK and install SDK API version 18, latest SDK tools, platform-tools and build-tools
|
||||||
|
echo "Running Android SDK update for API version 18, SDK-tools, platform-tools and build-tools-$sdkBuildToolsVersion..."
|
||||||
|
echo "y" |"$targetFolder"/sdk/tools/android update sdk --no-ui --all --filter $sdkApiLevel,tools,platform-tools,build-tools-$sdkBuildToolsVersion || echo "Failed to run update"
|
||||||
|
|
||||||
|
# For Qt 5.6, we by default require API levels 10, 11, 16 and 18, but we can override this by setting ANDROID_API_VERSION=android-18
|
||||||
|
# From Qt 5.7 forward, if android-16 is not installed, Qt will automatically use more recent one.
|
||||||
|
echo 'export ANDROID_API_VERSION=android-18' >> ~/.bashrc
|
||||||
|
|
||||||
|
# Storage version information to ~/versions.txt, which is used to print version information to provision log.
|
||||||
|
echo "***** Android SDK *****" >> ~/versions.txt
|
||||||
|
echo "Android SDK Api Level = $sdkApiLevel" >> ~/versions.txt
|
||||||
|
echo "Android SDK Build Tools Version = $sdkBuildToolsVersion" >> ~/versions.txt
|
||||||
|
platformTools="$(grep Pkg.Revision "$targetFolder"/sdk/platform-tools/source.properties | cut -c14-)"
|
||||||
|
echo "Android Platform Tools = $platformTools" >> ~/versions.txt
|
||||||
|
sdkTools="$(grep Pkg.Revision "$targetFolder"/sdk/tools/source.properties | cut -c14-)"
|
||||||
|
echo "Android SDK Tools = $sdkTools" >> ~/versions.txt
|
||||||
|
echo "***** Android NDK *****" >> ~/versions.txt
|
||||||
|
echo "Android NDK Version = $ndkVersion" >> ~/versions.txt
|
||||||
|
|
||||||
@@ -68,3 +68,6 @@ sudo cp -a $tempDir/lib/* /usr/lib64
|
|||||||
sudo cp -a $tempDir/* /usr/
|
sudo cp -a $tempDir/* /usr/
|
||||||
|
|
||||||
sudo /sbin/ldconfig
|
sudo /sbin/ldconfig
|
||||||
|
|
||||||
|
# Storage version information to ~/versions.txt, which is used to print version information to provision log.
|
||||||
|
echo "ICU = $icuVersion" >> ~/versions.txt
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/env bash
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
##
|
##
|
||||||
@@ -33,14 +33,12 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
sudo apt-get -y build-dep qt5-default
|
# This script needs to be called last during provisioning so that the software information will show up last in provision log.
|
||||||
|
|
||||||
# qtbase
|
# Storage installed RPM packages information
|
||||||
sudo apt-get -y install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev
|
echo "*********************************************" >> ~/versions.txt
|
||||||
sudo apt-get -y install libxcb-xinerama0-dev libdbus-1-dev libatspi2.0-dev
|
echo "***** All installed RPM packages *****" >> ~/versions.txt
|
||||||
|
rpm -q -a | sort >> ~/versions.txt
|
||||||
|
echo "*********************************************" >> ~/versions.txt
|
||||||
|
|
||||||
# qtmultimedia
|
$(dirname $0)/../common/linux/version.sh
|
||||||
sudo apt-get -y install libasound2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
|
|
||||||
|
|
||||||
# qtwebengine
|
|
||||||
sudo apt-get -y install libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libfontconfig1-dev libcap-dev libxtst-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev libxss-dev libegl1-mesa-dev gperf bison
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# provides: python development libraries
|
|
||||||
# version: provided by default Linux distribution repository
|
|
||||||
# needed to build pyside
|
|
||||||
sudo subscription-manager refresh
|
|
||||||
sudo yum install -y python-devel python-virtualenv
|
|
||||||
3
coin/provisioning/qtci-linux-Ubuntu-14.04-x86_64/02-disable-ntp.sh
Executable file
3
coin/provisioning/qtci-linux-Ubuntu-14.04-x86_64/02-disable-ntp.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source "${BASH_SOURCE%/*}/../common/linux/disable-ntp_linux.sh"
|
||||||
@@ -3,4 +3,6 @@
|
|||||||
# needed to build pyside
|
# needed to build pyside
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y python-dev
|
sudo apt-get install -y python-dev python3-dev python3-pip
|
||||||
|
|
||||||
|
sudo pip3 install virtualenv
|
||||||
|
|||||||
@@ -1,53 +1 @@
|
|||||||
#!/bin/bash
|
$(dirname $0)/../common/linux/cmake_linux.sh
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
##
|
|
||||||
## Copyright (C) 2016 The Qt Company Ltd.
|
|
||||||
## Contact: http://www.qt.io/licensing/
|
|
||||||
##
|
|
||||||
## This file is part of the test suite of the Qt Toolkit.
|
|
||||||
##
|
|
||||||
## $QT_BEGIN_LICENSE:LGPL21$
|
|
||||||
## Commercial License Usage
|
|
||||||
## Licensees holding valid commercial Qt licenses may use this file in
|
|
||||||
## accordance with the commercial license agreement provided with the
|
|
||||||
## Software or, alternatively, in accordance with the terms contained in
|
|
||||||
## a written agreement between you and The Qt Company. For licensing terms
|
|
||||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
|
||||||
## information use the contact form at http://www.qt.io/contact-us.
|
|
||||||
##
|
|
||||||
## GNU Lesser General Public License Usage
|
|
||||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
|
||||||
## General Public License version 2.1 or version 3 as published by the Free
|
|
||||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
|
||||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
|
||||||
## following information to ensure the GNU Lesser General Public License
|
|
||||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
|
||||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
||||||
##
|
|
||||||
## As a special exception, The Qt Company gives you certain additional
|
|
||||||
## rights. These rights are described in The Qt Company LGPL Exception
|
|
||||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
||||||
##
|
|
||||||
## $QT_END_LICENSE$
|
|
||||||
##
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
# This script installs CMake 3.6.2
|
|
||||||
|
|
||||||
# CMake is needed for autotests that verify that Qt can be built with CMake
|
|
||||||
|
|
||||||
# shellcheck source=../common/InstallFromCompressedFileFromURL.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/InstallFromCompressedFileFromURL.sh"
|
|
||||||
|
|
||||||
version="3.6.2"
|
|
||||||
PrimaryUrl="http://ci-files01-hki.ci.local/input/cmake/cmake-3.6.2-Linux-x86_64.tar.gz"
|
|
||||||
AltUrl="https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz"
|
|
||||||
SHA1="dd9d8d57b66109d4bac6eef9209beb94608a185c"
|
|
||||||
targetFolder="/opt/cmake-$version"
|
|
||||||
appPrefix="cmake-$version-Linux-x86_64"
|
|
||||||
|
|
||||||
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
|
|
||||||
|
|
||||||
echo "Adding $targetFolder/bin to PATH"
|
|
||||||
echo "export PATH=$targetFolder/bin:$PATH" >> ~/.bashrc
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# Disable questions on shutdown.
|
|
||||||
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# Disable questions on shutdown.
|
|
||||||
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
sudo apt-get update
|
|
||||||
4
coin/provisioning/qtci-osx-10.10-x86_64/001-system_updates.sh
Executable file
4
coin/provisioning/qtci-osx-10.10-x86_64/001-system_updates.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
$BASEDIR/../common/macos/system_updates.sh
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Read .bashrc if exist
|
||||||
|
printf -- "# Get the aliases and functions\nif [ -f ~/.bashrc ]; then\n . ~/.bashrc\nfi\n" >> ~/.bash_profile
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
source "$BASEDIR/../common/macos/01-macos-removethemall.sh"
|
||||||
|
|
||||||
3
coin/provisioning/qtci-osx-10.10-x86_64/02-disable-ntp.sh
Executable file
3
coin/provisioning/qtci-osx-10.10-x86_64/02-disable-ntp.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source "${BASH_SOURCE%/*}/../common/unix/disable-ntp_macos.sh"
|
||||||
1
coin/provisioning/qtci-osx-10.10-x86_64/025-python3.sh
Normal file
1
coin/provisioning/qtci-osx-10.10-x86_64/025-python3.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
source "${BASH_SOURCE%/*}/../common/macos/python3.sh"
|
||||||
2
coin/provisioning/qtci-osx-10.10-x86_64/crashreporter.sh
Normal file
2
coin/provisioning/qtci-osx-10.10-x86_64/crashreporter.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
defaults write com.apple.CrashReporter DialogType server
|
||||||
0
coin/provisioning/qtci-osx-10.11-x86_64/001-crashreporter.sh
Normal file → Executable file
0
coin/provisioning/qtci-osx-10.11-x86_64/001-crashreporter.sh
Normal file → Executable file
4
coin/provisioning/qtci-osx-10.11-x86_64/001-system_updates.sh
Executable file
4
coin/provisioning/qtci-osx-10.11-x86_64/001-system_updates.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
$BASEDIR/../common/macos/system_updates.sh
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
mkdir -p $HOME/Library/LaunchAgents
|
|
||||||
cat >$HOME/Library/LaunchAgents/no-screensaver.plist <<EOT
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>Label</key>
|
|
||||||
<string>org.qt.io.screensaver_disable</string>
|
|
||||||
<key>ProgramArguments</key>
|
|
||||||
<array>
|
|
||||||
<string>defaults</string>
|
|
||||||
<string>-currentHost</string>
|
|
||||||
<string>write</string>
|
|
||||||
<string>com.apple.screensaver</string>
|
|
||||||
<string>idleTime</string>
|
|
||||||
<string>0</string>
|
|
||||||
</array>
|
|
||||||
<key>RunAtLoad</key>
|
|
||||||
<true/>
|
|
||||||
<key>KeepAlive</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
EOT
|
|
||||||
5
coin/provisioning/qtci-osx-10.11-x86_64/003-bashprofile.sh
Executable file
5
coin/provisioning/qtci-osx-10.11-x86_64/003-bashprofile.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Read .bashrc if exist
|
||||||
|
printf -- "# Get the aliases and functions\nif [ -f ~/.bashrc ]; then\n . ~/.bashrc\nfi\n" >> ~/.bash_profile
|
||||||
|
|
||||||
50
coin/provisioning/qtci-osx-10.11-x86_64/004-fix-virtualenv.sh
Executable file
50
coin/provisioning/qtci-osx-10.11-x86_64/004-fix-virtualenv.sh
Executable file
@@ -0,0 +1,50 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2018 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
# macOS 10.11 template doesn't have working virtualenv installation.
|
||||||
|
# To fix that, we first have to install pip to install virtualenv
|
||||||
|
# Install pip
|
||||||
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||||
|
sudo python get-pip.py
|
||||||
|
rm get-pip.py
|
||||||
|
|
||||||
|
# remove possible link pointing to broken virtualenv
|
||||||
|
sudo rm -f /opt/local/bin/virtualenv
|
||||||
|
sudo pip install virtualenv
|
||||||
|
|
||||||
|
# make sure it is now in PATH
|
||||||
|
which virtualenv
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
129
coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh
Executable file
129
coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh
Executable file
@@ -0,0 +1,129 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script modified system settings for automated use
|
||||||
|
|
||||||
|
# shellcheck source=../common/unix/try_catch.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
||||||
|
|
||||||
|
VNCPassword=qt
|
||||||
|
NTS_IP=10.212.2.216
|
||||||
|
|
||||||
|
ExceptionDisableScreensaver=100
|
||||||
|
ExceptionSetInitialDelay=101
|
||||||
|
ExceptionSetDelay=102
|
||||||
|
ExceptionVNC=103
|
||||||
|
ExceptionNTS=104
|
||||||
|
ExceptionDisableScreensaverPassword=105
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
echo "Disable Screensaver"
|
||||||
|
# For current session
|
||||||
|
defaults -currentHost write com.apple.screensaver idleTime 0 || throw $ExceptionDisableScreensaver
|
||||||
|
|
||||||
|
# For session after a reboot
|
||||||
|
mkdir -p "$HOME/Library/LaunchAgents" || throw $ExceptionDisableScreensaver
|
||||||
|
(
|
||||||
|
cat >"$HOME/Library/LaunchAgents/no-screensaver.plist" <<EOT
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>org.qt.io.screensaver_disable</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>defaults</string>
|
||||||
|
<string>-currentHost</string>
|
||||||
|
<string>write</string>
|
||||||
|
<string>com.apple.screensaver</string>
|
||||||
|
<string>idleTime</string>
|
||||||
|
<string>0</string>
|
||||||
|
</array>
|
||||||
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
<key>KeepAlive</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
EOT
|
||||||
|
) || throw $ExceptionDisableScreensaver
|
||||||
|
|
||||||
|
defaults write com.apple.screensaver askForPassword -int 0 || throw $ExceptionDisableScreensaverPassword
|
||||||
|
|
||||||
|
echo "Set keyboard type rates and delays"
|
||||||
|
# normal minimum is 15 (225 ms)
|
||||||
|
defaults write -g InitialKeyRepeat -int 15 || throw $ExceptionSetInitialDelay
|
||||||
|
# normal minimum is 2 (30 ms)
|
||||||
|
defaults write -g KeyRepeat -int 2 || throw $ExceptionSetDelay
|
||||||
|
|
||||||
|
echo "Enable remote desktop sharing"
|
||||||
|
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw $VNCPassword -restart -agent -privs -all || throw $ExceptionVNC
|
||||||
|
|
||||||
|
echo "Set Network Test Server address to $NTS_IP in /etc/hosts"
|
||||||
|
echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts || throw $ExceptionNTS
|
||||||
|
|
||||||
|
)
|
||||||
|
catch || {
|
||||||
|
case $ex_code in
|
||||||
|
$ExceptionDisableScreensaver)
|
||||||
|
echo "Failed to disable screensaver."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionSetInitialDelay)
|
||||||
|
echo "Failed to set initial delay of keyboard."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionSetDelay)
|
||||||
|
echo "Failed to set delay of keyboard."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionVNC)
|
||||||
|
echo "Failed to enable VNC."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionNTS)
|
||||||
|
echo "Failed to set NTS."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionDisableScreensaverPassword)
|
||||||
|
echo "Failed to disable requiring of password after screensaver is enabled."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
3
coin/provisioning/qtci-osx-10.11-x86_64/007-SSL_keychain.sh
Executable file
3
coin/provisioning/qtci-osx-10.11-x86_64/007-SSL_keychain.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Enables the usage of temporary keychains for SSL autotests
|
||||||
|
echo "export QT_SSL_USE_TEMPORARY_KEYCHAIN=1" >> ~/.bashrc
|
||||||
50
coin/provisioning/qtci-osx-10.11-x86_64/015-xz.sh
Executable file
50
coin/provisioning/qtci-osx-10.11-x86_64/015-xz.sh
Executable file
@@ -0,0 +1,50 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script installs XZ-Utils
|
||||||
|
|
||||||
|
# XZ-Utils are needed for uncompressing xz-compressed files
|
||||||
|
|
||||||
|
# shellcheck source=../common/macos/InstallPKGFromURL.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../common/macos/InstallPKGFromURL.sh"
|
||||||
|
|
||||||
|
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/osx_10.11_el_capitan/XZ.pkg"
|
||||||
|
AltUrl="http://sourceforge.net/projects/macpkg/files/XZ/5.0.7/XZ.pkg"
|
||||||
|
SHA1="f0c1f82ebcffe0bd4b8b57b6a77805db56b2de67"
|
||||||
|
DestDir="/"
|
||||||
|
|
||||||
|
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
||||||
|
|
||||||
|
echo "XZ = 5.0.7" >> ~/versions.txt
|
||||||
3
coin/provisioning/qtci-osx-10.11-x86_64/02-disable-ntp.sh
Executable file
3
coin/provisioning/qtci-osx-10.11-x86_64/02-disable-ntp.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
$(dirname $0)/../common/unix/disable-ntp_macos.sh
|
||||||
129
coin/provisioning/qtci-osx-10.11-x86_64/020-java.sh
Executable file
129
coin/provisioning/qtci-osx-10.11-x86_64/020-java.sh
Executable file
@@ -0,0 +1,129 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script installs JDK
|
||||||
|
echo "Installing Java Development Kit"
|
||||||
|
|
||||||
|
# shellcheck source=../common/unix/try_catch.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
||||||
|
|
||||||
|
ExceptionDownloadPrimaryUrl=100
|
||||||
|
ExceptionDownloadAltUrl=101
|
||||||
|
ExceptionSHA1=102
|
||||||
|
ExceptionAttachImage=103
|
||||||
|
ExceptionInstall=104
|
||||||
|
ExceptionDetachImage=105
|
||||||
|
ExceptionRemoveTmpFile=106
|
||||||
|
ExceptionDisableAutoUpdate=107
|
||||||
|
|
||||||
|
|
||||||
|
url=http://ci-files01-hki.intra.qt.io/input/mac/osx_10.11_el_capitan/jdk-8u102-macosx-x64.dmg
|
||||||
|
url_alt=http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-macosx-x64.dmg
|
||||||
|
targetFile=/tmp/jdk-8u102-macosx-x64.dmg
|
||||||
|
expectedSha1=1405af955f14e32aae187b5754a716307db22104
|
||||||
|
|
||||||
|
try
|
||||||
|
(
|
||||||
|
try
|
||||||
|
(
|
||||||
|
echo "Downloading from primary URL '$url'"
|
||||||
|
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || throw $ExceptionDownloadPrimaryUrl
|
||||||
|
)
|
||||||
|
catch || {
|
||||||
|
case $ex_code in
|
||||||
|
$ExceptionDownloadPrimaryUrl)
|
||||||
|
echo "Failed to download '$url' multiple times"
|
||||||
|
echo "Downloading tar.gz from alternative URL '$url_alt'"
|
||||||
|
curl --fail -L --retry 5 --retry-delay 5 -j -k -H "Cookie: oraclelicense=accept-securebackup-cookie" -o "$targetFile" "$url_alt" || throw $ExceptionDownloadAltUrl
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
echo "Checking SHA1 on '$targetFile'"
|
||||||
|
echo "$expectedSha1 *$targetFile" | shasum --check || throw $ExceptionSHA1
|
||||||
|
|
||||||
|
echo Mounting DMG
|
||||||
|
hdiutil attach "$targetFile" || throw $ExceptionAttachImage
|
||||||
|
|
||||||
|
echo Installing JDK
|
||||||
|
(cd /Volumes/JDK\ 8\ Update\ 102/ && sudo installer -package JDK\ 8\ Update\ 102.pkg -target /) || throw $ExceptionInstall
|
||||||
|
|
||||||
|
disk=`hdiutil info | grep '/Volumes/JDK 8 Update 102' | awk '{print $1}'`
|
||||||
|
hdiutil detach $disk || throw $ExceptionDetachImage
|
||||||
|
|
||||||
|
echo "Removing temporary file '$targetFile'"
|
||||||
|
rm "$targetFile" || throw $ExceptionRemoveTmpFile
|
||||||
|
|
||||||
|
echo "Disable auto update"
|
||||||
|
sudo defaults write /Library/Preferences/com.oracle.java.Java-Updater JavaAutoUpdateEnabled -bool false || throw $ExceptionDisableAutoUpdate
|
||||||
|
|
||||||
|
echo "JDK Version = 8 update 102" >> ~/versions.txt
|
||||||
|
)
|
||||||
|
catch || {
|
||||||
|
case $ex_code in
|
||||||
|
$ExceptionDownloadPrimaryUrl)
|
||||||
|
echo "Failed to download JDK from primary URL."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionDownloadAltUrl)
|
||||||
|
echo "Failed to download JDK from alternative URL."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionSHA1)
|
||||||
|
echo "Failed to check SHA1."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionAttachImage)
|
||||||
|
echo "Failed to attach image."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionInstall)
|
||||||
|
echo "Failed to install JDK."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionDetachImage)
|
||||||
|
echo "Failed to detach image."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionRemoveTmpFile)
|
||||||
|
echo "Failed to remove temporary file."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
$ExceptionDisableAutoUpdate)
|
||||||
|
echo "Failed to disable auto update."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
}
|
||||||
53
coin/provisioning/qtci-osx-10.11-x86_64/020-xcode.sh
Executable file
53
coin/provisioning/qtci-osx-10.11-x86_64/020-xcode.sh
Executable file
@@ -0,0 +1,53 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script installs Xcode
|
||||||
|
# Prerequisites: Have Xcode prefetched to local cache as xz compressed.
|
||||||
|
# This can be achieved by fetching Xcode_8.xip from Apple Store.
|
||||||
|
# Uncompress it with 'xar -xf Xcode_8.xip'
|
||||||
|
# Then get https://gist.githubusercontent.com/pudquick/ff412bcb29c9c1fa4b8d/raw/24b25538ea8df8d0634a2a6189aa581ccc6a5b4b/parse_pbzx2.py
|
||||||
|
# with which you can run 'python parse_pbzx2.py Content'.
|
||||||
|
# This will give you a file called "Content.part00.cpio.xz" that
|
||||||
|
# can be renamed to Xcode_8.xz for this script.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# shellcheck source=../common/unix/try_catch.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
||||||
|
|
||||||
|
# shellcheck source=../common/macos/install_xcode.sh
|
||||||
|
source "${BASH_SOURCE%/*}/../common/macos/install_xcode.sh"
|
||||||
|
|
||||||
|
InstallXCode /net/ci-files01-hki.intra.qt.io/hdd/www/input/mac/Xcode_8.2.xz 8.2
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user