Skip to content

Commit

Permalink
Merge from 3.x: PR #4613
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jun 16, 2017
2 parents f5c6ec1 + 1b9421f commit 74a569d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
24 changes: 10 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ sudo: false
matrix:
include:
- python: "2.7"
env: TEST_MODULES=false USE_PYQT=pyqt5
env: USE_PYQT=pyqt4
os: linux
- python: "2.7"
env: TEST_MODULES=true USE_PYQT=pyqt4
env: USE_PYQT=pyqt5
os: linux
- python: "3.5"
env: TEST_MODULES=false USE_PYQT=pyqt4
os: linux
- python: "3.5"
env: TEST_MODULES=true USE_PYQT=pyqt4
env: USE_PYQT=pyqt4
os: linux
# This slot runs our tests only with pip packages
- python: "3.5"
env: TEST_MODULES=false USE_PYQT=pyqt5
env: USE_PYQT=pyqt5
os: linux
- python: "3.6"
env: USE_PYQT=pyqt5
os: linux

before_install:
Expand All @@ -32,14 +32,10 @@ install:

script:
- |
if [ "$TEST_MODULES" = "true" ]; then
./continuous_integration/travis/modules_test.sh
if [ "$USE_PYQT" = "pyqt5" ]; then
./continuous_integration/travis/test-qt5.sh || ./continuous_integration/travis/test-qt5.sh
else
if [ "$USE_PYQT" = "pyqt5" ]; then
./continuous_integration/travis/test-qt5.sh
else
./continuous_integration/travis/test-qt4.sh
fi
./continuous_integration/travis/test-qt4.sh || ./continuous_integration/travis/test-qt4.sh
fi
after_success:
Expand Down
6 changes: 4 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
machine:
environment:
# Python versions to tests (Maximum of 4 different versions)
PY_VERSIONS: "3.5 3.6"
PY_VERSIONS: "2.7 3.5 3.6"
# Environment variable used by astropy helpers
TRAVIS_OS_NAME: "linux"
# PyQt version to test with
USE_PYQT: pyqt5

dependencies:
pre:
Expand All @@ -24,5 +26,5 @@ test:
#- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && ciocheck spyder: # note the colon
# parallel: true
# PyQt5
- ./continuous_integration/circle/test-qt5.sh || ./continuous_integration/circle/test-qt5.sh: # note the colon
- ./continuous_integration/circle/modules_test.sh || ./continuous_integration/circle/modules_test.sh: # note the colon
parallel: true
1 change: 0 additions & 1 deletion continuous_integration/travis/test-qt5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ else
conda install -q qt=5.* pyqt=5.* qtconsole matplotlib
fi


python runtests.py
3 changes: 2 additions & 1 deletion spyder/app/tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def test_change_types_in_varexp(main_window, qtbot):


@flaky(max_runs=3)
@pytest.mark.skipif(os.name != 'nt', reason="It times out on Linux")
@pytest.mark.skipif(os.name != 'nt' or not PY2,
reason="It times out on Linux and Python 3")
@pytest.mark.use_introspection
def test_calltip(main_window, qtbot):
"""Hide the calltip in the editor when a matching ')' is found."""
Expand Down

0 comments on commit 74a569d

Please sign in to comment.