From 233b5636e629dedbeffc89c22d074e0472e98459 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sat, 14 Jan 2017 23:09:41 -0800 Subject: [PATCH] Added shapely and libgeos to travis --- .travis.yml | 3 ++- graphene/types/tests/test_geo.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 541c0c0f..a5606845 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,10 +19,11 @@ before_install: virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION" source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate" fi + sudo apt-get install -q libgeos-dev libgeos install: - | if [ "$TEST_TYPE" = build ]; then - pip install pytest pytest-cov pytest-benchmark coveralls six pytz iso8601 + pip install pytest pytest-cov pytest-benchmark coveralls six pytz iso8601 shapely pip install -e . python setup.py develop elif [ "$TEST_TYPE" = lint ]; then diff --git a/graphene/types/tests/test_geo.py b/graphene/types/tests/test_geo.py index c61ccf8a..33b0e68c 100644 --- a/graphene/types/tests/test_geo.py +++ b/graphene/types/tests/test_geo.py @@ -1,5 +1,7 @@ import pytest +pytest.importorskip("shapely") + from ..geo import Point from ..objecttype import ObjectType from ..schema import Schema