mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Add provisioning scripts for Firebird 5.0.0
Add provisioning scripts for Firebird 5.0.0 to be able to compile the QSql within the CI. Fixes: QTQAINFRA-6303 Change-Id: I58bf45b0e291700eb1d58158b8cfd37e335d2195 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
24
coin/provisioning/common/linux/install-firebird.sh
Executable file
24
coin/provisioning/common/linux/install-firebird.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2024 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -e
|
||||
|
||||
SSL_VER=$1
|
||||
PACK_TYPE=$2
|
||||
PROVISIONING_DIR="$(dirname "$0")/../../"
|
||||
# shellcheck source=../unix/common.sourced.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/common.sourced.sh"
|
||||
# shellcheck source=../unix/DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
|
||||
|
||||
localRepo=http://ci-files01-hki.ci.qt.io/input/docker
|
||||
upstreamRepo=https://github.com/FirebirdSQL/firebird/releases/download/v5.0.0
|
||||
packageFile=Firebird-5.0.0.1306-0-linux-x64.tar.gz
|
||||
sha=9a04b54d308ca10394d5339fe039b9e367b441c2
|
||||
|
||||
DownloadURL $localRepo/$packageFile $upstreamRepo/$packageFile $sha /tmp/$packageFile
|
||||
|
||||
tar xf /tmp/$packageFile -C /tmp
|
||||
/tmp/Firebird-5.0.0.1306-0-linux-x64/install.sh -silent
|
||||
32
coin/provisioning/common/windows/install-firebird.ps1
Executable file
32
coin/provisioning/common/windows/install-firebird.ps1
Executable file
@@ -0,0 +1,32 @@
|
||||
# Copyright (C) 2024 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
. "$PSScriptRoot\helpers.ps1"
|
||||
|
||||
# This script installs firebird $version.
|
||||
|
||||
$version = "5.0.0"
|
||||
$fullversion = "$version.1306-0"
|
||||
$packagex64 = "C:\Windows\temp\Firebird-$fullversion-windows-x64.zip"
|
||||
|
||||
# Install x64 bit versions
|
||||
$architecture = "x64"
|
||||
$installFolder = "C:\Utils\postgresql"
|
||||
$externalUrl = "https://github.com/FirebirdSQL/firebird/releases/download/v$version/Firebird-$fullversion-windows-x64.zip"
|
||||
$internalUrl = "\\ci-files01-hki.ci.qt.io\provisioning\windows\Firebird-$fullversion-windows-x64.zip"
|
||||
$sha1 = "3cedcdc0a0f8b9e313d0ca11ac06c90c0b7deb3f"
|
||||
|
||||
Write-Host "Fetching from URL ..."
|
||||
Download $externalUrl $internalUrl $packagex64
|
||||
Verify-Checksum $packagex64 $sha1
|
||||
Write-Host "Installing $packagex64 ..."
|
||||
Extract-7Zip $packagex64 $installFolder
|
||||
|
||||
Write-Host "Remove downloaded $packagex64 ..."
|
||||
Remove $packagex64
|
||||
|
||||
Set-EnvironmentVariable "Interbase_INCLUDEDIR" "$installFolder\include"
|
||||
Set-EnvironmentVariable "Interbase_LIBDIR" "$installFolder\lib"
|
||||
|
||||
# Store version information to ~/versions.txt, which is used to print version information to provision log.
|
||||
Write-Output "Firebird = $fullversion" >> ~/versions.txt
|
||||
Reference in New Issue
Block a user