forked from qt-creator/qt-creator
Coin: Add instructions to install pyenv for qtsdk.git
Make sure that the required Python version for qtsdk can be installed in the future. Change-Id: Ie69cf79a33e4e4529dd34de7729d3014f8631fe2 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -23,44 +23,41 @@ instructions:
|
|||||||
ref: master
|
ref: master
|
||||||
directory: "build/qtsdk"
|
directory: "build/qtsdk"
|
||||||
userMessageOnFailure: "Failed to install qtsdk, check logs"
|
userMessageOnFailure: "Failed to install qtsdk, check logs"
|
||||||
- type: ExecuteCommand
|
- type: InstallSourceArchive
|
||||||
command: "python3 -m pip install pipenv==2022.4.8 --user"
|
maxTimeInSeconds: 600
|
||||||
maxTimeInSeconds: 1200
|
maxTimeBetweenOutput: 600
|
||||||
maxTimeBetweenOutput: 120
|
project: qtsdk/tqtc-qtsdk
|
||||||
userMessageOnFailure: "Failed to install Pipenv"
|
ref: master
|
||||||
|
directory: "build/tqtc-qtsdk"
|
||||||
|
userMessageOnFailure: "Failed to install tqtc-qtsdk, check logs"
|
||||||
|
- type: Group
|
||||||
|
instructions:
|
||||||
|
- type: ExecuteCommand
|
||||||
|
command: python tqtc-qtsdk/jenkins-templates/jenkins/scripts/pkg_bootstrap.py
|
||||||
|
maxTimeInSeconds: 36000
|
||||||
|
maxTimeBetweenOutput: 3600
|
||||||
|
userMessageOnFailure: "pkg_bootstrap.py failed"
|
||||||
enable_if:
|
enable_if:
|
||||||
condition: property
|
condition: and
|
||||||
property: host.os
|
conditions:
|
||||||
in_values: [MacOS, Linux]
|
- condition: property
|
||||||
- type: ExecuteCommand
|
property: host.os
|
||||||
command: "python -m pip install pipenv==2022.4.8 --user"
|
equals_value: Windows
|
||||||
maxTimeInSeconds: 1200
|
- type: Group
|
||||||
maxTimeBetweenOutput: 120
|
instructions:
|
||||||
userMessageOnFailure: "Failed to install Pipenv"
|
- type: ExecuteCommand
|
||||||
|
command: python3 tqtc-qtsdk/jenkins-templates/jenkins/scripts/pkg_bootstrap.py
|
||||||
|
maxTimeInSeconds: 36000
|
||||||
|
maxTimeBetweenOutput: 3600
|
||||||
|
userMessageOnFailure: "pkg_bootstrap.py failed"
|
||||||
enable_if:
|
enable_if:
|
||||||
condition: property
|
condition: and
|
||||||
property: host.os
|
conditions:
|
||||||
equals_value: Windows
|
- condition: property
|
||||||
|
property: host.os
|
||||||
|
not_equals_value: Windows
|
||||||
- type: ChangeDirectory
|
- type: ChangeDirectory
|
||||||
directory: "{{.AgentWorkingDir}}/build/qtsdk/packaging-tools"
|
directory: "{{.BuildDir}}/qtsdk/packaging-tools"
|
||||||
- type: ExecuteCommand
|
|
||||||
command: "python3 -m pipenv install --skip-lock"
|
|
||||||
maxTimeInSeconds: 1200
|
|
||||||
maxTimeBetweenOutput: 120
|
|
||||||
userMessageOnFailure: "Failed to install requirements from Pipfile"
|
|
||||||
enable_if:
|
|
||||||
condition: property
|
|
||||||
property: host.os
|
|
||||||
in_values: [MacOS, Linux]
|
|
||||||
- type: ExecuteCommand
|
|
||||||
command: "python -m pipenv install --skip-lock"
|
|
||||||
maxTimeInSeconds: 1200
|
|
||||||
maxTimeBetweenOutput: 120
|
|
||||||
userMessageOnFailure: "Failed to install requirements from Pipfile"
|
|
||||||
enable_if:
|
|
||||||
condition: property
|
|
||||||
property: host.os
|
|
||||||
equals_value: Windows
|
|
||||||
- type: ExecuteCommand
|
- type: ExecuteCommand
|
||||||
command: "python3 -m pipenv run python -u install_qt.py --qt-path {{.BuildDir}}/qt_install_dir --base-url {{.Env.QTC_QT_BASE_URL}} --base-url-postfix={{.Env.QTC_QT_POSTFIX}} --icu7z http://master.qt.io/development_releases/prebuilt/icu/prebuilt/56.1/icu-linux-g++-Rhel7.2-x64.7z {{.Env.QTC_QT_MODULES}}"
|
command: "python3 -m pipenv run python -u install_qt.py --qt-path {{.BuildDir}}/qt_install_dir --base-url {{.Env.QTC_QT_BASE_URL}} --base-url-postfix={{.Env.QTC_QT_POSTFIX}} --icu7z http://master.qt.io/development_releases/prebuilt/icu/prebuilt/56.1/icu-linux-g++-Rhel7.2-x64.7z {{.Env.QTC_QT_MODULES}}"
|
||||||
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
||||||
|
Reference in New Issue
Block a user