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

View File

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