aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJie Luo <anandolee@gmail.com>2018-04-19 16:39:08 -0700
committerGitHub <noreply@github.com>2018-04-19 16:39:08 -0700
commit32f2ba63c867e2b3e37321024b3d011de299d275 (patch)
tree9dd85425dc5c567d3b5b223a4fc202448e3dd555
parentac9f21a6a40c2c3582e4a0c7839fe943938f425b (diff)
downloadprotobuf-32f2ba63c867e2b3e37321024b3d011de299d275.tar.gz
protobuf-32f2ba63c867e2b3e37321024b3d011de299d275.tar.bz2
protobuf-32f2ba63c867e2b3e37321024b3d011de299d275.zip
Update tests.sh
-rwxr-xr-xtests.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests.sh b/tests.sh
index d39b23d0..260ab14c 100755
--- a/tests.sh
+++ b/tests.sh
@@ -226,8 +226,12 @@ internal_install_python_deps() {
if [ "$TRAVIS" != "true" ]; then
return;
fi
- # install tox
- sudo pip install tox
+ # Install tox (OS X doesn't have pip).
+ if [ $(uname -s) == "Darwin" ]; then
+ sudo brew install tox
+ else
+ sudo pip install tox
+ fi
# Only install Python2.6/3.x on Linux.
if [ $(uname -s) == "Linux" ]; then
sudo apt-get install -y python-software-properties # for apt-add-repository