mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-21 04:16:39 +08:00
Merge remote-tracking branch 'origin/5.14' into 5.14.1
Change-Id: Ia832d6cf790e6eb23e54fd2377ae24efa4e7a950
This commit is contained in:
@@ -36,7 +36,9 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
||||||
. $(dirname "$0")/../../common/unix/DownloadURL.sh
|
PROVISIONING_DIR="$(dirname "$0")/../../"
|
||||||
|
. "$PROVISIONING_DIR"/common/unix/common.sourced.sh
|
||||||
|
. "$PROVISIONING_DIR"/common/unix/DownloadURL.sh
|
||||||
|
|
||||||
|
|
||||||
localRepo=http://ci-files01-hki.intra.qt.io/input/docker
|
localRepo=http://ci-files01-hki.intra.qt.io/input/docker
|
||||||
@@ -52,8 +54,8 @@ do
|
|||||||
DownloadURL $localRepo/$f $upstreamRepo/$f $sha
|
DownloadURL $localRepo/$f $upstreamRepo/$f $sha
|
||||||
done
|
done
|
||||||
|
|
||||||
sudo apt-get -y install ./containerd.io*.deb ./docker-ce*.deb ./docker-ce-cli*.deb
|
sudo apt-get -y install ./containerd.io_*.deb ./docker-ce_*.deb ./docker-ce-cli_*.deb
|
||||||
rm -f ./containerd.io*.deb ./docker-ce*.deb ./docker-ce-cli*.deb
|
rm -f ./containerd.io_*.deb ./docker-ce_*.deb ./docker-ce-cli_*.deb
|
||||||
|
|
||||||
sudo usermod -a -G docker $USER
|
sudo usermod -a -G docker $USER
|
||||||
sudo docker --version
|
sudo docker --version
|
||||||
@@ -61,7 +63,7 @@ sudo docker --version
|
|||||||
# Download and install the docker-compose extension from https://github.com/docker/compose/releases
|
# Download and install the docker-compose extension from https://github.com/docker/compose/releases
|
||||||
f=docker-compose-$(uname -s)-$(uname -m)
|
f=docker-compose-$(uname -s)-$(uname -m)
|
||||||
DownloadURL \
|
DownloadURL \
|
||||||
$localRepo/$f \
|
$localRepo/$f-1.24.1 \
|
||||||
https://github.com/docker/compose/releases/download/1.24.1/$f \
|
https://github.com/docker/compose/releases/download/1.24.1/$f \
|
||||||
cfb3439956216b1248308141f7193776fcf4b9c9b49cbbe2fb07885678e2bb8a
|
cfb3439956216b1248308141f7193776fcf4b9c9b49cbbe2fb07885678e2bb8a
|
||||||
sudo install -m 755 ./docker-compose* /usr/local/bin/docker-compose
|
sudo install -m 755 ./docker-compose* /usr/local/bin/docker-compose
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
sudo apt-get remove update-manager
|
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
FROM ubuntu:16.04
|
FROM qt_ubuntu_16.04
|
||||||
ARG packages="apache2 libcgi-session-perl wget avahi-daemon"
|
ARG packages="avahi-daemon apache2 libcgi-session-perl"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
# install configurations and test data
|
# install configurations and test data
|
||||||
RUN wget https://tools.ietf.org/rfc/rfc3252.txt
|
|
||||||
|
COPY rfc3252.txt .
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
ARG packages="apache2 libcgi-session-perl avahi-daemon"
|
ARG packages="avahi-daemon apache2 libcgi-session-perl"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
|
ARG packages="avahi-daemon maven default-jdk"
|
||||||
RUN apt-get update && apt-get -y install git maven default-jdk avahi-daemon
|
RUN apt-get update && apt-get -y install $packages
|
||||||
|
|
||||||
RUN mkdir -p /root/src/
|
|
||||||
|
|
||||||
# Get californium-based CoAP test server
|
# Get californium-based CoAP test server
|
||||||
WORKDIR /root/src
|
WORKDIR /root/src
|
||||||
RUN git clone https://github.com/selart/californium.git
|
ADD californium-*.tar.gz .
|
||||||
|
RUN mv californium-* californium
|
||||||
WORKDIR /root/src/californium
|
WORKDIR /root/src/californium
|
||||||
RUN mvn clean install -q -DskipTests
|
RUN mvn clean install -q -DskipTests
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
EXPOSE 5683/udp 5684/udp
|
EXPOSE 5683/udp 5684/udp
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:16.04
|
FROM qt_ubuntu_16.04
|
||||||
ARG packages="cyrus-imapd avahi-daemon"
|
ARG packages="avahi-daemon cyrus-imapd"
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 143 993
|
EXPOSE 143 993
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
ARG packages="cyrus-imapd avahi-daemon"
|
ARG packages="avahi-daemon cyrus-imapd"
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 143 993
|
EXPOSE 143 993
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
FROM ubuntu:16.04
|
FROM qt_ubuntu_16.04
|
||||||
ARG packages="gdebi-core wget avahi-daemon"
|
ARG packages="avahi-daemon"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
RUN wget http://ppa.launchpad.net/dajhorn/dante/ubuntu/pool/main/d/dante/dante-server_1.4.1-1_amd64.deb
|
COPY dante-server_1.4.1-1_amd64.deb .
|
||||||
RUN gdebi -n dante-server_1.4.1-1_amd64.deb
|
RUN apt -y install ./dante-server_1.4.1-1_amd64.deb \
|
||||||
|
&& rm -f ./dante-server_1.4.1-1_amd64.deb
|
||||||
EXPOSE 1080-1081
|
EXPOSE 1080-1081
|
||||||
|
|
||||||
# install configurations and test data
|
# install configurations and test data
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
ARG packages="dante-server avahi-daemon"
|
ARG packages="avahi-daemon dante-server"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 1080-1081
|
EXPOSE 1080-1081
|
||||||
|
|||||||
@@ -33,13 +33,13 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
set -ex
|
set -e
|
||||||
|
|
||||||
|
|
||||||
|
PROVISIONING_DIR="$(dirname "$0")/../../../"
|
||||||
|
. "$PROVISIONING_DIR"/common/unix/common.sourced.sh
|
||||||
|
. "$PROVISIONING_DIR"/common/unix/DownloadURL.sh
|
||||||
|
|
||||||
[ -x "$(command -v realpath)" ] && FILE=$(realpath ${BASH_SOURCE[0]}) || FILE=${BASH_SOURCE[0]}
|
|
||||||
case $FILE in
|
|
||||||
*/*) SERVER_PATH="${FILE%/*}" ;;
|
|
||||||
*) SERVER_PATH="." ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Sort files by their SHA-1, and then return the accumulated result
|
# Sort files by their SHA-1, and then return the accumulated result
|
||||||
sha1tree () {
|
sha1tree () {
|
||||||
@@ -51,20 +51,76 @@ sha1tree () {
|
|||||||
sort | ${SHASUM-sha1sum} | cut -d ' ' -f 1
|
sort | ${SHASUM-sha1sum} | cut -d ' ' -f 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# A tag labels a specific image version. In the docker compose file
|
|
||||||
# (docker-compose.yml) that launches the containers, the tag used is
|
|
||||||
# "latest". Here the images are also tagged with the SHA1 of each server
|
|
||||||
# context, so if needed we can modify docker-compose.yml to launch a very
|
|
||||||
# specific image, thus providing a way to stage backwards-incompatible changes
|
|
||||||
# across repositories.
|
|
||||||
|
|
||||||
source "$SERVER_PATH/settings.sh"
|
SERVER_PATH="$PROVISIONING_DIR/common/shared/testserver"
|
||||||
|
|
||||||
|
. "$SERVER_PATH/settings.sh"
|
||||||
|
|
||||||
|
|
||||||
|
# Download all necessary dependencies outside of the dockerfiles, so that we
|
||||||
|
# can use provisioning functionality for cached and verified downloads. In the
|
||||||
|
# dockerfiles we just do COPY to put them where needed.
|
||||||
|
|
||||||
|
echo 'Downloading support files for the docker images'
|
||||||
|
|
||||||
|
DownloadURL \
|
||||||
|
http://ci-files01-hki.intra.qt.io/input/docker/rfc3252.txt \
|
||||||
|
https://tools.ietf.org/rfc/rfc3252.txt \
|
||||||
|
50c323dedce95e4fdc2db35cd1b8ebf9d74711bf5296ef438b88d186d7dd082d
|
||||||
|
cp rfc3252.txt "$SERVER_PATH/vsftpd/"
|
||||||
|
cp rfc3252.txt "$SERVER_PATH/apache2/"
|
||||||
|
|
||||||
|
DownloadURL \
|
||||||
|
http://ci-files01-hki.intra.qt.io/input/docker/dante-server_1.4.1-1_amd64.deb \
|
||||||
|
http://ppa.launchpad.net/dajhorn/dante/ubuntu/pool/main/d/dante/dante-server_1.4.1-1_amd64.deb \
|
||||||
|
674a06f356cebd92c64920cec38a6687650a6f880198fbbad05aaaccca5c0a21
|
||||||
|
mv dante-server_1.4.1-1_amd64.deb "$SERVER_PATH/danted/"
|
||||||
|
|
||||||
|
DownloadURL \
|
||||||
|
http://ci-files01-hki.intra.qt.io/input/docker/FreeCoAP-0.7.tar.gz \
|
||||||
|
https://github.com/keith-cullen/FreeCoAP/archive/v0.7.tar.gz \
|
||||||
|
fa6602e27dc8eaee6e34ff53400c0519da0c5c7cd47bf6f13acb564f52a693ee \
|
||||||
|
FreeCoAP-0.7.tar.gz
|
||||||
|
mv FreeCoAP-0.7.tar.gz "$SERVER_PATH/freecoap/"
|
||||||
|
|
||||||
|
# Custom fork of Eclipse Californium with changes not upstream
|
||||||
|
DownloadURL \
|
||||||
|
http://ci-files01-hki.intra.qt.io/input/docker/californium-secure-test-server.tar.gz \
|
||||||
|
https://github.com/sonakur/californium/archive/secure-test-server.tar.gz \
|
||||||
|
0ee7f5d4366b9e31f6d2d42e389cb7a66d2db54987b700a38a3a31e8f38a7a19 \
|
||||||
|
californium-secure-test-server.tar.gz
|
||||||
|
mv californium-secure-test-server.tar.gz "$SERVER_PATH/californium/"
|
||||||
|
|
||||||
|
|
||||||
|
echo 'Building the docker images...'
|
||||||
|
|
||||||
|
# Build the 2 base layers: qt_ubuntu_1604, qt_ubuntu_1804.
|
||||||
|
# These are the base for all other docker images.
|
||||||
|
for image in qt_ubuntu_16.04 qt_ubuntu_18.04
|
||||||
|
do
|
||||||
|
docker build -t $image \
|
||||||
|
--build-arg COIN_RUNS_IN_QT_COMPANY="$COIN_RUNS_IN_QT_COMPANY" \
|
||||||
|
"$SERVER_PATH/$image"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
for server in $testserver
|
for server in $testserver
|
||||||
do
|
do
|
||||||
|
|
||||||
|
# We label each docker image with `-t name:tag`.
|
||||||
|
# A tag labels a specific image version. In the docker compose file
|
||||||
|
# (docker-compose.yml) that launches the containers, the tag used is
|
||||||
|
# "latest". Here the images are additionally tagged with the SHA1 of each
|
||||||
|
# image directory (context), so that if needed we can modify
|
||||||
|
# docker-compose.yml and modify "latest" to a SHA in order to launch a
|
||||||
|
# very specific image, thus providing a way to stage
|
||||||
|
# backwards-incompatible changes across repositories.
|
||||||
|
|
||||||
context="$SERVER_PATH/$server"
|
context="$SERVER_PATH/$server"
|
||||||
tag=$(sha1tree $context)
|
tag=$(sha1tree $context)
|
||||||
docker build -t qt-test-server-$server:$tag -t qt-test-server-$server:latest $context
|
docker build -t qt-test-server-$server:latest \
|
||||||
|
-t qt-test-server-$server:$tag \
|
||||||
|
$context
|
||||||
done
|
done
|
||||||
|
|
||||||
docker images
|
docker images
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:16.04
|
FROM qt_ubuntu_16.04
|
||||||
ARG packages="xinetd avahi-daemon"
|
ARG packages="avahi-daemon xinetd"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 7 7/UDP 13
|
EXPOSE 7 7/UDP 13
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
ARG packages="xinetd avahi-daemon"
|
ARG packages="avahi-daemon xinetd"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 7 7/UDP 13
|
EXPOSE 7 7/UDP 13
|
||||||
|
|||||||
@@ -1,20 +1,14 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
|
ARG packages="avahi-daemon autoconf automake libtool make libgnutls28-dev"
|
||||||
|
RUN apt-get update && apt-get -y install $packages
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y install git avahi-daemon autoconf automake libtool make libgnutls28-dev
|
|
||||||
|
|
||||||
RUN mkdir -p /root/src/
|
|
||||||
|
|
||||||
# Get FreeCoAP test server
|
|
||||||
WORKDIR /root/src
|
WORKDIR /root/src
|
||||||
RUN git clone https://github.com/keith-cullen/FreeCoAP.git
|
ADD FreeCoAP-*.tar.gz .
|
||||||
|
RUN mv FreeCoAP-* FreeCoAP
|
||||||
WORKDIR /root/src/FreeCoAP
|
WORKDIR /root/src/FreeCoAP
|
||||||
RUN autoreconf --install
|
RUN autoreconf --install && ./configure && make && make install
|
||||||
RUN ./configure
|
WORKDIR sample/time_server
|
||||||
RUN make
|
RUN make
|
||||||
RUN make install
|
|
||||||
WORKDIR /root/src/FreeCoAP/sample/time_server
|
|
||||||
RUN make
|
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
EXPOSE 5685/udp
|
EXPOSE 5685/udp
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:16.04
|
FROM qt_ubuntu_16.04
|
||||||
ARG packages="ftp-proxy avahi-daemon"
|
ARG packages="avahi-daemon ftp-proxy"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 2121
|
EXPOSE 2121
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
ARG packages="ftp-proxy avahi-daemon"
|
ARG packages="avahi-daemon ftp-proxy"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 2121
|
EXPOSE 2121
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:16.04
|
FROM qt_ubuntu_16.04
|
||||||
ARG packages="iptables avahi-daemon"
|
ARG packages="avahi-daemon iptables"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 1357
|
EXPOSE 1357
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
ARG packages="iptables avahi-daemon"
|
ARG packages="avahi-daemon iptables"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 1357
|
EXPOSE 1357
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
FROM ubuntu:16.04
|
||||||
|
ARG COIN_RUNS_IN_QT_COMPANY
|
||||||
|
RUN test x"$COIN_RUNS_IN_QT_COMPANY" = xtrue \
|
||||||
|
&& sed -i 's;\(archive\|security\)\.ubuntu\.com;repo-clones.ci.qt.io/apt-mirror/mirror;' /etc/apt/sources.list \
|
||||||
|
|| echo "Internal package repository not found. Using public repositories."
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
FROM ubuntu:18.04
|
||||||
|
ARG COIN_RUNS_IN_QT_COMPANY
|
||||||
|
RUN test x"$COIN_RUNS_IN_QT_COMPANY" = xtrue \
|
||||||
|
&& sed -i 's;\(archive\|security\)\.ubuntu\.com;repo-clones.ci.qt.io/apt-mirror/mirror;' /etc/apt/sources.list \
|
||||||
|
|| echo "Internal package repository not found. Using public repositories."
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:16.04
|
FROM qt_ubuntu_16.04
|
||||||
ARG packages="squid avahi-daemon"
|
ARG packages="avahi-daemon squid"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 3128-3130
|
EXPOSE 3128-3130
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
ARG packages="squid avahi-daemon"
|
ARG packages="avahi-daemon squid"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 3128-3130
|
EXPOSE 3128-3130
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:16.04
|
FROM qt_ubuntu_16.04
|
||||||
ARG packages="vsftpd ftp wget avahi-daemon"
|
ARG packages="avahi-daemon vsftpd ftp"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 20-21
|
EXPOSE 20-21
|
||||||
|
|
||||||
# install configurations and test data
|
# install configurations and test data
|
||||||
RUN wget https://tools.ietf.org/rfc/rfc3252.txt
|
COPY rfc3252.txt .
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM qt_ubuntu_18.04
|
||||||
ARG packages="vsftpd avahi-daemon"
|
ARG packages="avahi-daemon vsftpd"
|
||||||
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
RUN apt-get update && apt-get install -y $packages && dpkg -l $packages
|
||||||
EXPOSE 20-21
|
EXPOSE 20-21
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ export PROVISIONING_ARCH
|
|||||||
export CMD_PKG_INSTALL
|
export CMD_PKG_INSTALL
|
||||||
export CMD_PKG_LOCALINSTALL
|
export CMD_PKG_LOCALINSTALL
|
||||||
export CMD_INSTALL
|
export CMD_INSTALL
|
||||||
|
export COIN_RUNS_IN_QT_COMPANY
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -143,6 +144,13 @@ set_common_environment () {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
CMD_INSTALL="sudo install"
|
CMD_INSTALL="sudo install"
|
||||||
|
|
||||||
|
COIN_RUNS_IN_QT_COMPANY=false
|
||||||
|
if ping -c1 repo-clones.ci.qt.io >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
COIN_RUNS_IN_QT_COMPANY=true
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set_common_environment
|
set_common_environment
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
##
|
##
|
||||||
## Copyright (C) 2017 The Qt Company Ltd.
|
## Copyright (C) 2020 The Qt Company Ltd.
|
||||||
## Contact: http://www.qt.io/licensing/
|
## Contact: http://www.qt.io/licensing/
|
||||||
##
|
##
|
||||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
# This script installs postgresql $version.
|
# This script installs postgresql $version.
|
||||||
# Both x86 and x64 versions needed when x86 integrations are done on x64 machine
|
# Both x86 and x64 versions needed when x86 integrations are done on x64 machine
|
||||||
|
|
||||||
$version = "9.1.9-1"
|
$version = "9.6.16-1"
|
||||||
$packagex64 = "C:\Windows\temp\postgresql-$version-windows-x64-binaries.zip"
|
$packagex64 = "C:\Windows\temp\postgresql-$version-windows-x64-binaries.zip"
|
||||||
$packagex86 = "C:\Windows\temp\postgresql-$version-windows-binaries.zip"
|
$packagex86 = "C:\Windows\temp\postgresql-$version-windows-binaries.zip"
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ if (Is64BitWinHost) {
|
|||||||
$installFolder = "C:\Utils\postgresql"
|
$installFolder = "C:\Utils\postgresql"
|
||||||
$externalUrl = "http://get.enterprisedb.com/postgresql/postgresql-$version-windows-x64-binaries.zip"
|
$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"
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\postgresql-$version-windows-x64-binaries.zip"
|
||||||
$sha1 = "4da0453cdfda335e064d4437cf5bb9d356054cfd"
|
$sha1 = "5dd604f91973112209362b5abbbd1220c026f645"
|
||||||
|
|
||||||
Write-Host "Fetching from URL ..."
|
Write-Host "Fetching from URL ..."
|
||||||
Download $externalUrl $internalUrl $packagex64
|
Download $externalUrl $internalUrl $packagex64
|
||||||
@@ -56,6 +56,8 @@ if (Is64BitWinHost) {
|
|||||||
|
|
||||||
Write-Host "Remove downloaded $packagex64 ..."
|
Write-Host "Remove downloaded $packagex64 ..."
|
||||||
Remove-Item -Path $packagex64
|
Remove-Item -Path $packagex64
|
||||||
|
# Remove pthread.h file so it won't be used in mingw builds (QTBUG-79555)
|
||||||
|
Remove-item -Path "$installFolder\pgsql\include\pthread.h"
|
||||||
|
|
||||||
Set-EnvironmentVariable "POSTGRESQL_INCLUDE_x64" "$installFolder\pgsql\include"
|
Set-EnvironmentVariable "POSTGRESQL_INCLUDE_x64" "$installFolder\pgsql\include"
|
||||||
Set-EnvironmentVariable "POSTGRESQL_LIB_x64" "$installFolder\pgsql\lib"
|
Set-EnvironmentVariable "POSTGRESQL_LIB_x64" "$installFolder\pgsql\lib"
|
||||||
@@ -65,7 +67,7 @@ if (Is64BitWinHost) {
|
|||||||
$architecture = "x86"
|
$architecture = "x86"
|
||||||
$externalUrl = "http://get.enterprisedb.com/postgresql/postgresql-$version-windows-binaries.zip"
|
$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"
|
$internalUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\postgresql-$version-windows-binaries.zip"
|
||||||
$sha1 = "eb4f01845e1592800edbb74f60944b6c0aca51a9"
|
$sha1 = "46309190e60eead99c2d39c1dd18a91f2104d000"
|
||||||
if (Is64BitWinHost) {
|
if (Is64BitWinHost) {
|
||||||
$installFolder = "C:\Utils\postgresql$architecture"
|
$installFolder = "C:\Utils\postgresql$architecture"
|
||||||
} else {
|
} else {
|
||||||
@@ -81,6 +83,8 @@ Extract-7Zip $packagex86 $installFolder "pgsql\lib pgsql\bin pgsql\share pgsql\i
|
|||||||
|
|
||||||
Write-Host "Remove downloaded $packagex86 ..."
|
Write-Host "Remove downloaded $packagex86 ..."
|
||||||
Remove-Item -Path $packagex86
|
Remove-Item -Path $packagex86
|
||||||
|
# Remove pthread.h file so it won't be used in mingw builds (QTBUG-79555)
|
||||||
|
Remove-item -Path "$installFolder\pgsql\include\pthread.h"
|
||||||
|
|
||||||
Set-EnvironmentVariable "POSTGRESQL_INCLUDE_x86" "$installFolder\pgsql\include"
|
Set-EnvironmentVariable "POSTGRESQL_INCLUDE_x86" "$installFolder\pgsql\include"
|
||||||
Set-EnvironmentVariable "POSTGRESQL_LIB_x86" "$installFolder\pgsql\lib"
|
Set-EnvironmentVariable "POSTGRESQL_LIB_x86" "$installFolder\pgsql\lib"
|
||||||
|
|||||||
2
qt3d
2
qt3d
Submodule qt3d updated: 56009681f9...df5a63b059
Submodule qtactiveqt updated: 95304102ce...03eea4d922
2
qtbase
2
qtbase
Submodule qtbase updated: 1535fc9fb9...7a59d6f138
Submodule qtdeclarative updated: f60cde6114...c061719d2e
Submodule qtmultimedia updated: a8f83d4a3e...ee50d9a386
2
qtqa
2
qtqa
Submodule qtqa updated: ffbd9daf83...e323b91841
Submodule qtquick3d updated: 3f7c9cdbfe...acf8ae3790
Submodule qtquickcontrols updated: fbc0fe81fa...035cbc87fa
Submodule qtquickcontrols2 updated: 090eab86b0...f4d5939ad6
Submodule qtquicktimeline updated: 28e750a091...15abbfa113
Submodule qtremoteobjects updated: 7182b293f8...48a059f89e
2
qttools
2
qttools
Submodule qttools updated: 3a9b6fc440...e3507ac277
Submodule qtwayland updated: f7e0354463...5ed697cda3
Submodule qtwebchannel updated: 8d2c3b42bf...6d970e6954
Submodule qtwebengine updated: d2f6a5c7b9...7222c89c0a
Reference in New Issue
Block a user