From 525294386c6f28d47937bde43bee9018a4d5ca14 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Sun, 7 May 2017 19:09:08 -0500 Subject: [PATCH] Testing: Add a script to test PySide2 --- ci/test-pyside2.sh | 33 +++++++++++++++++++++++++++++++++ circle.yml | 6 ++++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100755 ci/test-pyside2.sh diff --git a/ci/test-pyside2.sh b/ci/test-pyside2.sh new file mode 100755 index 00000000..2059b5ff --- /dev/null +++ b/ci/test-pyside2.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +export PATH="$HOME/miniconda/bin:$PATH" +source activate test + +# Download PySide2 wheel +wget https://bintray.com/fredrikaverpil/pyside2-wheels/download_file?file_path=ubuntu14.04%2FPySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl -O PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl + +# We only use container 0 for PySide2 +if [ "$CIRCLE_NODE_INDEX" = "0" ]; then + conda remove -q qt pyqt + pip install PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl +else + exit 0 +fi + +# Make symlinks for Qt libraries (else imports fail) +pushd "$HOME/miniconda/lib/python2.7/site-packages/PySide2/" + +for file in `ls Qt*x86_64-linux-gnu.so` +do + symlink=${file%.x86_64-linux-gnu.so}.so + ln -s $file $symlink +done + +popd + +python qtpy/tests/runtests.py + +# Force quitting if exit status of runtests.py was not 0 +if [ $? -ne 0 ]; then + exit 1 +fi diff --git a/circle.yml b/circle.yml index 5245305b..b7c76c05 100644 --- a/circle.yml +++ b/circle.yml @@ -16,6 +16,8 @@ dependencies: pre: # We need this for QtMultimedia in 5.8 - sudo apt-get install libpulse-dev + # For PySide2 + - sudo apt-get install libqt5core5a libqt5gui5 libqt5multimedia5 override: # First convert PY_VERSIONS to an array and then select the Python version # based on the CIRCLE_NODE_INDEX @@ -32,8 +34,8 @@ test: override: - ./ci/test-pyqt5.sh: # note the colon parallel: true - # - ./ci/test-pyside2.sh: # note the colon - # parallel: true + - ./ci/test-pyside2.sh: # note the colon + parallel: true - ./ci/test-pyqt4.sh: # note the colon parallel: true - ./ci/test-pyside.sh: # note the colon