Add Qt5 if python 3 specified
Some checks failed
buildbot/travis_bionic Build done.

- workaround for tests
This commit is contained in:
Peter Šurda 2021-08-26 20:57:47 +08:00
parent 8ad80247b2
commit eef4c3dd16
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -85,6 +85,13 @@ function aptinstall() {
fi
}
function pyqt5() {
# install pyqt5 on python > 3
if [[ ! "$TRAVIS_PYTHON" == "2.7" ]]; then
sudo apt -y install qtbase5-dev qt5-default
fi
}
function virtualenv_init() {
# init virtualenv directory
if [ -n "$3" ]; then
@ -160,6 +167,7 @@ create_variables "$config_file" travis_
rundir=$(pwd)
aptinstall
pyqt5
# shellcheck disable=SC2154
if [[ "$(declare -p travis_python)" =~ "declare -a" ]]; then