Skip to content

Commit

Permalink
Split Common folder based on operating system families
Browse files Browse the repository at this point in the history
This change will split common folder to four different folders:
Linux, Unix, Windows and MacOS. Each of these folders includes scripts
which are common for their operating system familes

Task-number: QTQAINFRA-1451
Change-Id: Ic93b2183052335dee875d1452b21e38d268b6474
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
  • Loading branch information
hehalmet authored and gladhorn committed Jan 10, 2018
1 parent 52da24b commit 2a28ce8
Show file tree
Hide file tree
Showing 282 changed files with 253 additions and 253 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

# It also runs update for SDK API, latest SDK tools, latest platform-tools and build-tools version

source "${BASH_SOURCE%/*}/../common/try_catch.sh"
source "${BASH_SOURCE%/*}/../common/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../common/check_and_set_proxy.sh"
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../unix/check_and_set_proxy.sh"

targetFolder="/opt/android"
sdkTargetFolder="$targetFolder/sdk"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# CMake is needed for autotests that verify that Qt can be built with CMake

# shellcheck source=InstallFromCompressedFileFromURL.sh
source "${BASH_SOURCE%/*}/InstallFromCompressedFileFromURL.sh"
source "${BASH_SOURCE%/*}/../unix/InstallFromCompressedFileFromURL.sh"

version="3.6.2"
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/cmake/cmake-3.6.2-Linux-x86_64.tar.gz"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#############################################################################

# This script installs FBX SDK
source "${BASH_SOURCE%/*}/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
#s script installs FBX SDK

set -e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# This script installs INTEGRITY

source "${BASH_SOURCE%/*}/../common/InstallFromCompressedFileFromURL.sh"
source "${BASH_SOURCE%/*}/../unix/InstallFromCompressedFileFromURL.sh"

version="11.4.4"
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/integrity/ghs_$version.tar.gz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
# This script install OpenSSL from sources.
# Requires GCC and Perl to be in PATH.

source "${BASH_SOURCE%/*}/try_catch.sh"
source "${BASH_SOURCE%/*}/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"

version="1.0.2g"
officialUrl="https://www.openssl.org/source/openssl-$version.tar.gz"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
# to /Applications/. This can be overridden by a target parameter.

# shellcheck source=try_catch.sh
source "${BASH_SOURCE%/*}/try_catch.sh"
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
# shellcheck source=DownloadURL.sh
source "${BASH_SOURCE%/*}/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"

ExceptionDownload=99
ExceptionCreateTmpFile=100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#############################################################################

# shellcheck source=try_catch.sh
source "${BASH_SOURCE%/*}/try_catch.sh"
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"

ExceptionCreateTmpFile=100
ExceptionDownloadPrimaryUrl=101
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

# This script installs FBX SDK

# shellcheck source=./try_catch.sh
source "${BASH_SOURCE%/*}/try_catch.sh"
# shellcheck source=./../unix/try_catch.sh
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"

fileName="fbx20161_2_fbxsdk_clang_mac.pkg.tgz"
targetFolder="/opt/fbx"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
## $QT_END_LICENSE$
##
#############################################################################
source "${BASH_SOURCE%/*}/DownloadURL.sh"
source "${BASH_SOURCE%/*}/try_catch.sh"
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
set -ex

# Command line tools is need by homebrew
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@



# shellcheck source=../common/try_catch.sh
source "${BASH_SOURCE%/*}/try_catch.sh"
# shellcheck source=../common/unix/try_catch.sh
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"

function InstallXCode()
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
# In case of Linux, we expect to get the values as args
set -e

source "${BASH_SOURCE%/*}/../common/check_and_set_proxy.sh"
source "${BASH_SOURCE%/*}/check_and_set_proxy.sh"

BASEDIR=$(dirname "$0")
. $BASEDIR/sw_versions.txt
. $BASEDIR/../sw_versions.txt
url=$1
sha1=$2
version=$3
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
##
#############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# This script will install Dependency Walker 2.2.6000

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
## $QT_END_LICENSE$
##
#############################################################################
. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# Install Git version 2.13.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
##
#############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# This script will install Java SE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
##
############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

function InstallMinGW
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
##
#############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# This script will install Notepad++

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
##
#############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# This script will install Ruby

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
##
#############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# This script installs 7-Zip

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
##
#############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# This script installs Strawberry Perl

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
param([Int32]$archVer=32)
. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# 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.

Get-Content "$PSScriptRoot\..\common\sw_versions.txt" | Foreach-Object {
Get-Content "$PSScriptRoot\..\sw_versions.txt" | Foreach-Object {
$var = $_.Split('=')
New-Variable -Name $var[0] -Value $var[1]
$libclang_version = $libclang_version -replace '["."]'
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
## $QT_END_LICENSE$
##
#############################################################################
. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

$version = "11_2_2"
$package = "C:\Windows\temp\opengl32sw.7z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
## $QT_END_LICENSE$
##
#############################################################################
. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# Install Cumulative Servicing Release Visual Studio 2015 update 3
# Original download page: https://msdn.microsoft.com/en-us/library/mt752379.aspx
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
##
#############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# This script installs OpenSSL $version.
# Both x86 and x64 versions needed when x86 integrations are done on x64 machine
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
##
#############################################################################

. "$PSScriptRoot\..\common\helpers.ps1"
. "$PSScriptRoot\helpers.ps1"

# This script will set the network test server IP in to hosts file

$n = Get-Content "$PSScriptRoot\network_test_server_ip.txt"
$n = Get-Content "$PSScriptRoot\..\network_test_server_ip.txt"
$n = $n.Split('=')
New-Variable -Name $n[0] -Value $n[1]

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

set -ex

source "${BASH_SOURCE%/*}/../common/check_and_set_proxy.sh"
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"

if [ "$proxy" != "" ]; then
echo "proxy=$proxy" | sudo tee -a /etc/yum.conf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ VERSION=$libclang_version
URL="https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_${VERSION//\./}-linux-Rhel6.6-gcc4.9-x86_64.7z"
SHA1="c7466109628418a6aa3db8b3f5825f847f1c4952"

$BASEDIR/../common/libclang.sh "$URL" "$SHA1" "$VERSION"
$BASEDIR/../common/unix/libclang.sh "$URL" "$SHA1" "$VERSION"
2 changes: 1 addition & 1 deletion coin/provisioning/qtci-linux-RHEL-6.6-x86_64/09-cmake.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -ex

$(dirname $0)/../common/cmake_linux.sh
$(dirname $0)/../common/linux/cmake_linux.sh
2 changes: 1 addition & 1 deletion coin/provisioning/qtci-linux-RHEL-6.6-x86_64/99-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ echo "***** All installed RPM packages *****" >> ~/versions.txt
rpm -q -a | sort >> ~/versions.txt
echo "*********************************************" >> ~/versions.txt

$(dirname $0)/../common/version.sh
$(dirname $0)/../common/linux/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
set -ex

BASEDIR=$(dirname "$0")
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
source $BASEDIR/../common/network_test_server_ip.txt
source "${BASH_SOURCE%/*}/../common/check_and_set_proxy.sh"

echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
echo "$network_test_server_ip qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
Expand Down
2 changes: 1 addition & 1 deletion coin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-p7zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

set -ex

source "${BASH_SOURCE%/*}/../common/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"

name="p7zip"
version="7-11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ VERSION=$libclang_version
URL="https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_${VERSION//\./}-linux-Rhel7.2-gcc5.3-x86_64.7z"
SHA1="bbdbbc0296f42310077539b7247d285386119ef4"

$BASEDIR/../common/libclang.sh "$URL" "$SHA1" "$VERSION"
$BASEDIR/../common/unix/libclang.sh "$URL" "$SHA1" "$VERSION"
2 changes: 1 addition & 1 deletion coin/provisioning/qtci-linux-RHEL-7.4-x86_64/06-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ set -ex

# CMake is needed for autotests that verify that Qt can be built with CMake

source "${BASH_SOURCE%/*}/../common/cmake_linux.sh"
source "${BASH_SOURCE%/*}/../common/linux/cmake_linux.sh"
2 changes: 1 addition & 1 deletion coin/provisioning/qtci-linux-RHEL-7.4-x86_64/07-qnx_700.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

set -ex

source "${BASH_SOURCE%/*}/../common/qnx_700.sh"
source "${BASH_SOURCE%/*}/../common/linux/qnx_700.sh"
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

set -ex

source "${BASH_SOURCE%/*}/../common/integrity.sh"
source "${BASH_SOURCE%/*}/../common/linux/integrity.sh"
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

set -ex

source "${BASH_SOURCE%/*}/../common/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"

packageEpel="epel-release-latest-7.noarch.rpm"
OfficialUrl="https://dl.fedoraproject.org/pub/epel/$packageEpel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

set -ex

source "${BASH_SOURCE%/*}/../common/disable_selinux.sh"
source "${BASH_SOURCE%/*}/../common/linux/disable_selinux.sh"
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ source /opt/rh/devtoolset-4/enable

set -ex

source "${BASH_SOURCE%/*}/../common/openssl_for_android_linux.sh"
source "${BASH_SOURCE%/*}/../common/linux/openssl_for_android_linux.sh"
2 changes: 1 addition & 1 deletion coin/provisioning/qtci-linux-RHEL-7.4-x86_64/30-fbx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -ex

BASEDIR=$(dirname "$0")
$BASEDIR/../common/fbx_linux.sh
$BASEDIR/../common/linux/fbx_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

set -ex

source "${BASH_SOURCE%/*}/../common/android_linux.sh"
source "${BASH_SOURCE%/*}/../common/linux/android_linux.sh"
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@

# This script modifies system settings for automated use

# shellcheck source=../common/try_catch.sh

set -ex

source "${BASH_SOURCE%/*}/../common/try_catch.sh"
source "${BASH_SOURCE%/*}/../common/check_and_set_proxy.sh"
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
# shellcheck source=../common/unix/try_catch.sh
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"

NTS_IP=10.212.2.216

Expand Down
2 changes: 1 addition & 1 deletion coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

set -ex

source "${BASH_SOURCE%/*}/../common/try_catch.sh"
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"

ExceptionAPTUpdate=100
ExceptionAPT=101
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

set -ex

source "${BASH_SOURCE%/*}/../common/DownloadURL.sh"
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"

echo "Installing Yocto toolchain for 32-bit b2qt..."

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

set -ex

source "${BASH_SOURCE%/*}/../common/openssl_for_android_linux.sh"
source "${BASH_SOURCE%/*}/../common/linux/openssl_for_android_linux.sh"
2 changes: 1 addition & 1 deletion coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/30-fbx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -ex

BASEDIR=$(dirname "$0")
$BASEDIR/../common/fbx_linux.sh
$BASEDIR/../common/linux/fbx_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

set -ex

source "${BASH_SOURCE%/*}/../common/android_linux.sh"
source "${BASH_SOURCE%/*}/../common/linux/android_linux.sh"
Loading

0 comments on commit 2a28ce8

Please sign in to comment.