aboutsummaryrefslogtreecommitdiff
path: root/travis.sh
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2015-05-15 15:14:32 -0700
committerJoshua Haberman <jhaberman@gmail.com>2015-05-15 15:14:32 -0700
commit17ca0fee20029c571e1002938ef9bc2b5cf53266 (patch)
tree3ab03c5d88871728cb48c5326c2ccd0fd49ad609 /travis.sh
parenta526605aec4358e948bde0a8ad63f5f1de6f2cb5 (diff)
parente4f4d9fe83887b08b0db67512947645324826755 (diff)
downloadprotobuf-17ca0fee20029c571e1002938ef9bc2b5cf53266.tar.gz
protobuf-17ca0fee20029c571e1002938ef9bc2b5cf53266.tar.bz2
protobuf-17ca0fee20029c571e1002938ef9bc2b5cf53266.zip
Merge pull request #351 from tamird/remove-manifest-fix-dist
[PYTHON] Only generate protos in development
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/travis.sh b/travis.sh
index 556bc91c..24e0a4e0 100755
--- a/travis.sh
+++ b/travis.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
build_cpp() {
./autogen.sh
@@ -95,6 +95,8 @@ build_python() {
cd python
python setup.py build
python setup.py test
+ python setup.py sdist
+ sudo pip install virtualenv && virtualenv /tmp/protoenv && /tmp/protoenv/bin/pip install dist/*
cd ..
}
@@ -102,10 +104,13 @@ build_python_cpp() {
./autogen.sh
./configure
make -j2
- export LD_LIBRARY_PATH=../src/.libs
+ export LD_LIBRARY_PATH=../src/.libs # for Linux
+ export DYLD_LIBRARY_PATH=../src/.libs # for OS X
cd python
python setup.py build --cpp_implementation
python setup.py test --cpp_implementation
+ python setup.py sdist --cpp_implementation
+ sudo pip install virtualenv && virtualenv /tmp/protoenv && /tmp/protoenv/bin/pip install dist/*
cd ..
}