-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing: Move tests with PyQt 5.8 to Travis
- Loading branch information
1 parent
e301897
commit dad9a08
Showing
4 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# We test with pip packages in Python 3.5 and PyQt5 | ||
if [ "$TRAVIS_PYTHON_VERSION" = "3.5" ] && [ "$USE_PYQT" = "pyqt5" ]; then | ||
export PIP_DEPENDENCIES_FLAGS="-q" | ||
export PIP_DEPENDENCIES="coveralls" | ||
export CONDA_DEPENDENCIES="" | ||
else | ||
export CONDA_DEPENDENCIES_FLAGS="--quiet" | ||
export CONDA_DEPENDENCIES="rope pyflakes sphinx pygments pylint psutil nbconvert \ | ||
qtawesome pickleshare qtpy pyzmq chardet mock nomkl pandas \ | ||
pytest pytest-cov numpydoc scipy cython pillow jedi pycodestyle" | ||
export PIP_DEPENDENCIES="coveralls pytest-qt flaky" | ||
fi | ||
|
||
|
||
# Download and install miniconda and conda/pip dependencies | ||
# with astropy helpers | ||
echo -e "PYTHON = $TRAVIS_PYTHON_VERSION \n============" | ||
git clone git://github.com/astropy/ci-helpers.git > /dev/null | ||
source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh | ||
export PATH="$HOME/miniconda/bin:$PATH" | ||
source activate test | ||
|
||
|
||
# We test with pip packages in Python 3.5 and PyQt5 | ||
if [ "$TRAVIS_PYTHON_VERSION" = "3.5" ] && [ "$USE_PYQT" = "pyqt5" ]; then | ||
pip install -q -e .[test] | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
export PATH="$HOME/miniconda/bin:$PATH" | ||
source activate test | ||
|
||
pip uninstall -q -y pytest-xvfb | ||
conda install -q qt=5.* pyqt=5.* qtconsole matplotlib | ||
|
||
python runtests.py |