You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2017/01/30 23:03:26 UTC

[19/50] [abbrv] beam git commit: Install test dependencies in the post commit script.

Install test dependencies in the post commit script.


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/19789db9
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/19789db9
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/19789db9

Branch: refs/heads/master
Commit: 19789db9cab031e0891cb67c4ab6b8b03c6a8c09
Parents: 43cb4d7
Author: Ahmet Altay <al...@google.com>
Authored: Tue Jan 24 15:13:03 2017 -0800
Committer: Robert Bradshaw <ro...@gmail.com>
Committed: Tue Jan 24 16:32:36 2017 -0800

----------------------------------------------------------------------
 sdks/python/run_postcommit.sh | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/19789db9/sdks/python/run_postcommit.sh
----------------------------------------------------------------------
diff --git a/sdks/python/run_postcommit.sh b/sdks/python/run_postcommit.sh
index 2e419a5..3756075 100755
--- a/sdks/python/run_postcommit.sh
+++ b/sdks/python/run_postcommit.sh
@@ -70,6 +70,10 @@ python setup.py sdist
 
 SDK_LOCATION=$(find dist/apache-beam-sdk-*.tar.gz)
 
+# Install test dependencies for ValidatesRunner tests.
+echo "pyhamcrest" > postcommit_requirements.txt
+echo "mock" >> postcommit_requirements.txt
+
 # Run ValidatesRunner tests on Google Cloud Dataflow service
 echo ">>> RUNNING DATAFLOW RUNNER VALIDATESRUNNER TESTS"
 python setup.py nosetests \
@@ -80,6 +84,7 @@ python setup.py nosetests \
     --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
     --sdk_location=$SDK_LOCATION \
     --job_name=$JOBNAME_VR_TEST \
+    --requirements_file=postcommit_requirements.txt \
     --num_workers=1"
 
 # Run wordcount on the Google Cloud Dataflow service