Skip to content

Commit

Permalink
Modified tests on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wblumberg committed Sep 12, 2019
1 parent d34ea02 commit 065d33e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ matrix:
- os: linux
language: generic
env:
- PYTHON_VERSION="3.6" BUILD_CONDA="YES" NUMPY_VERSION=1.15
- PYTHON_VERSION="3.6" BUILD_CONDA="YES" NUMPY_VERSION=1.15 DISPLAY_AVAIL="NO"
- os: osx
language: generic
env:
- PYTHON_VERSION="3.6" DISPLAY_AVAIL="NO" BUILD_BINARY="YES" NUMPY_VERSION=1.15
- os: linux
language: generic
env:
- PYTHON_VERSION="3.6" BUILD_DOCS="YES" NUMPY_VERSION=1.15 COVERALLS="YES"
- PYTHON_VERSION="3.6" BUILD_DOCS="YES" NUMPY_VERSION=1.15 COVERALLS="YES" DISPLAY_AVAIL="NO"
before_install:
- source ci/install.sh
install:
Expand Down
3 changes: 1 addition & 2 deletions sharppy/tests/test_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
import glob
import sharppy.databases.sars as sars
import numpy as np
#from PySide import QtGui
full_gui = pytest.importorskip('runsharp.full_gui')

#@pytest.mark.skipif(QtGui.QX11Info.display())
#@pytest.mark.skipif(QtGui.QX11Info.display#())
@pytest.mark.skipif("DISPLAY_AVAIL" in os.environ and os.environ["DISPLAY_AVAIL"] == 'NO', reason="DISPLAY not set")
def test_main_entry_pt():
#sys.argv = []
Expand Down
1 change: 1 addition & 0 deletions sharppy/tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
app = QtWidgets.QApplication.instance()

#@pytest.mark.skipif(True, reason="DISPLAY not set")
#@pytest.mark.skipif(True)
@pytest.mark.skipif("DISPLAY_AVAIL" in os.environ and os.environ["DISPLAY_AVAIL"] == 'NO', reason="DISPLAY not set")
def test_insets():
insets = [viz.fire.plotFire,
Expand Down

0 comments on commit 065d33e

Please sign in to comment.