Add brew caching

This commit is contained in:
Sambhav Kothari
2018-02-06 19:35:26 +05:30
parent 22cb70a8cf
commit cd5800a2e6

View File

@@ -8,6 +8,10 @@ python:
cache:
- apt
- pip
cache:
ccache: true
directories:
- $HOME/Library/Caches/Homebrew
env:
global:
- PIP_INSTALL="pip3 install"
@@ -22,7 +26,7 @@ env:
matrix:
include:
- os: osx
osx_image: xcode8
osx_image: xcode6.4
language: generic
allow_failures:
- os: osx
@@ -30,6 +34,9 @@ matrix:
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq && sudo apt-get
install -qq transifex-client libdiscid0 libdiscid0-dev qt5-default; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash scripts/setup-osx.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source bin/activate; fi