Skip to content

Commit

Permalink
Testing: Add a script to test PySide2
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed May 8, 2017
1 parent 458bef8 commit 5252943
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
33 changes: 33 additions & 0 deletions ci/test-pyside2.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5252943

Please sign in to comment.