Skip to content

Commit

Permalink
Merge pull request #3338 from ccordoba12/qt-56-travis
Browse files Browse the repository at this point in the history
Testing: Use Qt/PyQt 5.6 packages in Travis
  • Loading branch information
ccordoba12 authored Aug 2, 2016
2 parents 11c3eec + 17953b4 commit b689475
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 58 deletions.
6 changes: 1 addition & 5 deletions continuous_integration/appveyor/run_test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
set TEST_CI_APP=True

:: Set extra packages
set EXTRA_PACKAGES=pandas sympy pillow

if %USE_QT_API%==PyQt4 (
set EXTRA_PACKAGES=%EXTRA_PACKAGES% matplotlib
)
set EXTRA_PACKAGES=pandas sympy pillow matplotlib

:: Move to a tmp dir before doing the installation
mkdir C:\projects\tmp
Expand Down
2 changes: 0 additions & 2 deletions continuous_integration/conda-recipes/qtconsole/bld.bat

This file was deleted.

3 changes: 0 additions & 3 deletions continuous_integration/conda-recipes/qtconsole/build.sh

This file was deleted.

28 changes: 0 additions & 28 deletions continuous_integration/conda-recipes/qtconsole/meta.yaml

This file was deleted.

5 changes: 2 additions & 3 deletions continuous_integration/conda-recipes/spyder/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ requirements:
run:
- python
- python.app # [osx]
- {% if environ.get('USE_QT_API') == 'PyQt4' %} pyqt {% else %} pyqt5 {% endif %} # [unix]
- {% if environ.get('USE_QT_API') == 'PyQt4' %} qt 4.* {% else %} qt 5.* {% endif %} # [win]
- {% if environ.get('USE_QT_API') == 'PyQt4' %} pyqt 4.* {% else %} pyqt 5.* {% endif %} # [win]
- {% if environ.get('USE_QT_API') == 'PyQt4' %} qt 4.* {% else %} qt 5.* {% endif %}
- {% if environ.get('USE_QT_API') == 'PyQt4' %} pyqt 4.* {% else %} pyqt 5.* {% endif %}
- rope 0.9.* # [py34 or py35]
- rope # [py27]
- pyflakes
Expand Down
8 changes: 1 addition & 7 deletions continuous_integration/travis/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ if [ "$USE_CONDA" = true ] ; then
conda info

cd continuous_integration/conda-recipes

# Custom build of qtconsole for pyqt5
if [ "$USE_QT_API" = "PyQt5" ]; then
conda build --python $TRAVIS_PYTHON_VERSION qtconsole
fi

conda build spyder
else
# Print basic testing info
Expand All @@ -28,5 +22,5 @@ else
git checkout master
fi

python setup.py bdist_wheel --universal
python setup.py bdist_wheel
fi
9 changes: 7 additions & 2 deletions continuous_integration/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ install_conda()
# Install testing dependencies
if [ "$USE_CONDA" = true ]; then
conda config --add channels spyder-ide;
if [ "$USE_QT_API" = "PyQt5" ]; then
conda config --add channels qttesting;
fi
echo 'conda-build ==1.18.1' > $HOME/miniconda/conda-meta/pinned;
conda install conda-build;
conda create -q -n test-environment python=$PY_VERSION;
Expand All @@ -63,10 +66,11 @@ install_conda()

install_pip()
{
# Install PyQt
if [ "$USE_QT_API" = "PyQt5" ]; then
conda install pyqt5;
conda install pyqt=5.* qt=5.* -c qttesting;
elif [ "$USE_QT_API" = "PyQt4" ]; then
conda install pyqt;
conda install pyqt=4.* qt=4.*;
fi

# Install testing packages
Expand All @@ -81,6 +85,7 @@ install_pip()
#==============================================================================
# Main
#==============================================================================
# Download Spyder code
download_code;

# Use conda even to test pip!
Expand Down
9 changes: 1 addition & 8 deletions continuous_integration/travis/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ export TEST_CI_APP=True
# We install them here and not in travis_install.sh to see if
# Spyder is correctly pulling its deps (some of them are shared
# with mpl)
export EXTRA_PACKAGES="nomkl pandas sympy pillow"


# Don't install mpl for PyQt5 because it pulls PyQt4
if [ "$USE_QT_API" = "PyQt4" ]; then
EXTRA_PACKAGES+=" matplotlib"
fi

export EXTRA_PACKAGES="nomkl pandas sympy pillow matplotlib"

# Install our builds of Spyder
if [ "$USE_CONDA" = true ] ; then
Expand Down

0 comments on commit b689475

Please sign in to comment.