Jie Luo 7 rokov pred
rodič
commit
32f2ba63c8
1 zmenil súbory, kde vykonal 6 pridanie a 2 odobranie
  1. 6 2
      tests.sh

+ 6 - 2
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