Added python tests to .travis.yml

pull/915/head
murgatroid99 10 years ago
parent 21bcda3e1d
commit b7063f1416
  1. 8
      .travis.yml
  2. 2
      tools/run_tests/build_python.sh
  3. 2
      tools/run_tests/run_tests.py

@ -7,13 +7,9 @@ env:
global: global:
- RUBY_VERSION=2.1 - RUBY_VERSION=2.1
matrix: matrix:
- CONFIG=dbg TEST=c - CONFIG=opt TEST=python
- CONFIG=dbg TEST=c++
- CONFIG=opt TEST=c
- CONFIG=opt TEST=c++
- CONFIG=opt TEST=node
- CONFIG=opt TEST=ruby
script: script:
- which python
- rvm use $RUBY_VERSION - rvm use $RUBY_VERSION
- gem install bundler - gem install bundler
- ./tools/run_tests/run_tests.py -l $TEST -t -j 16 -c $CONFIG -s 2.0 - ./tools/run_tests/run_tests.py -l $TEST -t -j 16 -c $CONFIG -s 2.0

@ -33,8 +33,6 @@ set -ex
# change to grpc repo root # change to grpc repo root
cd $(dirname $0)/../.. cd $(dirname $0)/../..
make -j6
root=`pwd` root=`pwd`
virtualenv python2.7_virtual_environment virtualenv python2.7_virtual_environment
source python2.7_virtual_environment/bin/activate source python2.7_virtual_environment/bin/activate

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

Loading…
Cancel
Save