Repository: beam Updated Branches: refs/heads/master 3f4e008bf -> 352af855e
Include cython tests in presubmits for linux platform Project: http://git-wip-us.apache.org/repos/asf/beam/repo Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/2a03dd4e Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/2a03dd4e Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/2a03dd4e Branch: refs/heads/master Commit: 2a03dd4e1c0ca0d72f44101c15fa3b824e245628 Parents: b498e11 Author: Vikas Kedigehalli <vika...@google.com> Authored: Tue Feb 28 10:09:40 2017 -0800 Committer: Robert Bradshaw <rober...@gmail.com> Committed: Tue Feb 28 16:53:05 2017 -0800 ---------------------------------------------------------------------- sdks/python/tox.ini | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam/blob/2a03dd4e/sdks/python/tox.ini ---------------------------------------------------------------------- diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini index 521f106..927c211 100644 --- a/sdks/python/tox.ini +++ b/sdks/python/tox.ini @@ -16,7 +16,7 @@ ; [tox] -envlist = py27,py27gcp,lint,docs +envlist = py27,py27gcp,py27cython,lint,docs [pep8] # Disable all errors and warnings except for the ones related to blank lines. @@ -34,6 +34,26 @@ commands = python setup.py test passenv = TRAVIS* +[testenv:py27cython] +# cython tests are only expected to work in linux (2.x and 3.x) +# If we want to add other platforms in the future, it should be: +# `platform = linux2|darwin|...` +# See https://docs.python.org/2/library/sys.html#sys.platform for platform codes +platform = linux2 +# autocomplete_test depends on nose when invoked directly. +deps = + nose + cython +commands = + python --version + pip install -e .[test] + python apache_beam/examples/complete/autocomplete_test.py + python setup.py test + # Clean up all cython generated files. + find apache_beam -type f -name '*.c' -delete + find apache_beam -type f -name '*.so' -delete +passenv = TRAVIS* + [testenv:py27gcp] # autocomplete_test depends on nose when invoked directly. deps =