summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-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" )"