From 2512694df938e1dad284897143712c9e4f31bc43 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.org> Date: Wed, 2 Aug 2017 19:59:44 -0400 Subject: [PATCH] Geos tests (#437) * fixed the bug for pypy-5.8.0 * cleanup makefile Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * allow builds to happen when capitalization is used Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * restore behavior Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * make makefile default to heroku-16 * test geos libraries Signed-off-by: Kenneth Reitz <me@kennethreitz.org> --- .gitignore | 2 ++ Makefile | 2 +- test/fixtures/geos/requirements.txt | 1 + test/run | 7 +++++-- 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 test/fixtures/geos/requirements.txt diff --git a/.gitignore b/.gitignore index e4aea17e..6d3aa824 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.pyc site .DS_Store + +/.envrc diff --git a/Makefile b/Makefile index 19045674..7d4ae900 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # These targets are not files .PHONY: tests -test: test-cedar-14 +test: test-heroku-16 test-cedar-14: @echo "Running tests in docker (cedar-14)..." diff --git a/test/fixtures/geos/requirements.txt b/test/fixtures/geos/requirements.txt new file mode 100644 index 00000000..68d357cf --- /dev/null +++ b/test/fixtures/geos/requirements.txt @@ -0,0 +1 @@ +django \ No newline at end of file diff --git a/test/run b/test/run index 1e66072a..7c042a3f 100755 --- a/test/run +++ b/test/run @@ -1,6 +1,5 @@ #!/usr/bin/env bash - testPipenv() { compile "pipenv" assertCapturedSuccess @@ -17,6 +16,11 @@ testNoRequirements() { assertCapturedError } +testGEOS() { + BUILD_WITH_GEO_LIBRARIES=1 compile "geos" + assertCaptured "geos" + assertCapturedSuccess +} testNLTK() { compile "nltk" @@ -24,7 +28,6 @@ testNLTK() { assertCapturedSuccess } - testSetupPy() { compile "setup-py" assertCaptured "maya" -- GitLab