summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2016-04-02 04:46:57 -0700
committerDwayne Litzenberger <dlitz@dlitz.net>2016-04-02 04:46:57 -0700
commit7244b4801f3c72d9bd342029f9f315e1da14cd03 (patch)
tree35d72efab1fab5f6428a0deaf0c3f9cf5a563928
parentd1db0688779d180733a7f11d9355ed390b67b5e2 (diff)
downloadpycrypto-7244b4801f3c72d9bd342029f9f315e1da14cd03.tar.gz
more osx stuff
-rw-r--r--.travis.yml23
1 files changed, 16 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 3bcddf5..4679c34 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,11 +14,11 @@ os:
# packages:
# - libgmp-dev
sudo: false
-#cache:
-# ccache: true
-# pip: true
-# directories:
-# - $HOME/.pyenv/cache
+cache:
+ #ccache: true
+ pip: true
+ directories:
+ - $HOME/.pyenv/cache
env:
- PYENV_VERSION=2.1.3
- PYENV_VERSION=2.2.3
@@ -60,8 +60,17 @@ before_install:
- deactivate || true
# Create pyenv cache directory if it doesn't already exist.
- mkdir -p ~/.pyenv/cache
- # OSX needs a different sha256sum invocation
- - if [ "$TRAVIS_OS_NAME" = "osx" ] ; then sha256sum() { shasum -a 256 "$@" ; } ; fi
+ # OSX stuff
+ - |-
+ if [ "$TRAVIS_OS_NAME" = "osx" ] ; then
+ brew update
+ brew install gmp
+
+ # OSX needs a different sha256sum invocation
+ sha256sum() {
+ shasum -a 256 "$@"
+ }
+ fi
# Download and verify pyenv, or use cached version if available.
- pyenv_uri=https://github.com/yyuu/pyenv/archive/v20160310.tar.gz
- pyenv_tarball="$HOME/.pyenv/cache/pyenv-$( basename "$pyenv_uri" )"