From bc360f7a795dc5479b1283f43b95af2e1c697a55 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 3 Apr 2018 16:54:11 -0400 Subject: [PATCH] Travis.yml: Fix pip and cache it on OSX --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 01d19c3c6c..18ce85bed9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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