#!/bin/bash

source $HOME/miniconda/etc/profile.d/conda.sh
conda activate test

if [ "$USE_CONDA" = "Yes" ]; then
    conda install -q qt=5.* pyqt=5.*
    conda install -q sip=4.19.8
else
    # We are getting segfaults in 5.10
    pip install -q pyqt5==5.9.2
fi

python qtpy/tests/runtests.py

# Force quitting if exit status of runtests.py was not 0
if [ $? -ne 0 ]; then
    exit 1
fi

#!/bin/bash

source $HOME/miniconda/etc/profile.d/conda.sh
conda activate test

# Select build with QtMultimedia
if [ "$PYTHON_VERSION" = "2.7" ]; then
    export BUILD=py27h22d08a2_0
elif [ "$PYTHON_VERSION" = "3.5" ]; then
    export BUILD=py35h751905a_0
else
    export BUILD=py36h751905a_0
fi

if [ "$USE_CONDA" = "Yes" ]; then
    conda install -q qt=5.* pyqt=5.9.2=$BUILD
    conda install -q sip=4.19.8
else
    # We are getting segfaults in 5.10
    pip install -q pyqt5==5.9.2
fi

python qtpy/tests/runtests.py

# Force quitting if exit status of runtests.py was not 0
if [ $? -ne 0 ]; then
    exit 1
fi

Select PyQt5 conda builds with QtMultimedia
Testing: Select PyQt5 conda builds with QtMultimedia
