From 7244b4801f3c72d9bd342029f9f315e1da14cd03 Mon Sep 17 00:00:00 2001 From: Dwayne Litzenberger Date: Sat, 2 Apr 2016 04:46:57 -0700 Subject: more osx stuff --- .travis.yml | 23 ++++++++++++++++------- 1 file 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" )" -- cgit v1.2.1