Merge pull request #887 from murgatroid99/travis_python

Added python tests to .travis.yml
pull/917/head
Nicolas Noble 10 years ago
commit b9518217f0
  1. 1
      .travis.yml
  2. 3
      src/python/src/setup.py
  3. 5
      tools/run_tests/build_python.sh
  4. 3
      tools/run_tests/run_python.sh
  5. 2
      tools/run_tests/run_tests.py

@ -14,6 +14,7 @@ env:
- CONFIG=opt TEST=c++
- CONFIG=opt TEST=node
- CONFIG=opt TEST=ruby
- CONFIG=opt TEST=python
script:
- rvm use $RUBY_VERSION
- gem install bundler

@ -47,8 +47,9 @@ _EXTENSION_INCLUDE_DIRECTORIES = (
)
_EXTENSION_LIBRARIES = (
'gpr',
'grpc',
'gpr',
'rt',
)
_EXTENSION_MODULE = _core.Extension(

@ -33,10 +33,9 @@ set -ex
# change to grpc repo root
cd $(dirname $0)/../..
make -j6
root=`pwd`
virtualenv python2.7_virtual_environment
rm -rf python2.7_virtual_environment
virtualenv -p /usr/bin/python2.7 python2.7_virtual_environment
source python2.7_virtual_environment/bin/activate
pip install enum34==1.0.4 futures==2.2.0 protobuf==3.0.0-alpha-1
CFLAGS=-I$root/include LDFLAGS=-L$root/libs/opt pip install src/python/src

@ -38,7 +38,8 @@ export LD_LIBRARY_PATH=$root/libs/opt
source python2.7_virtual_environment/bin/activate
# TODO(issue 215): Properly itemize these in run_tests.py so that they can be parallelized.
# TODO(atash): Enable dynamic unused port discovery for this test.
python2.7 -B test/compiler/python_plugin_test.py --build_mode=opt
# TODO(mlumish): Re-enable this test when we can install protoc
# python2.7 -B test/compiler/python_plugin_test.py --build_mode=opt
python2.7 -B -m grpc._adapter._blocking_invocation_inline_service_test
python2.7 -B -m grpc._adapter._c_test
python2.7 -B -m grpc._adapter._event_invocation_synchronous_event_service_test

@ -135,7 +135,7 @@ class PythonLanguage(object):
return [config.job_spec('tools/run_tests/run_python.sh', None)]
def make_targets(self):
return[]
return ['static_c']
def build_steps(self):
return [['tools/run_tests/build_python.sh']]

Loading…
Cancel
Save