Travis.yml: Fix pip and cache it on OSX

This commit is contained in:
Corentin Wallez 2018-04-03 16:54:11 -04:00 committed by Corentin Wallez
parent 32c0caab61
commit bc360f7a79
1 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,9 @@ sudo: false
language:
- cpp
python:
- "2.7"
env:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
@ -16,6 +19,9 @@ env:
compiler:
- clang
cache:
- pip
addons:
# Everything under apt is only used on linux
apt:
@ -47,7 +53,7 @@ before_install:
install:
# Install dependencies required on OSX
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ninja; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo python -m pip install jinja2; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then pip install --user jinja2; fi
script:
# Use the more recent compilers we just installed