Add Qt5 if python 3 specified

- workaround for tests
pull/1/head
Peter Šurda 12 months ago
parent 8ad80247b2
commit eef4c3dd16
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
  1. 8
      travis2bash.sh

@ -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

Loading…
Cancel
Save