chore(ci): Enable node_modules & ccache caching (#1553)

This enables caching of `node_modules`, and `ccache` directories,
as well as installation of ccache on Mac OS.

Change-Type: patch
This commit is contained in:
Jonas Hermsmeier 2017-06-27 23:27:43 +02:00 committed by GitHub
parent 2008c50ebf
commit 65210e4cbc
3 changed files with 8 additions and 1 deletions

View File

@ -3,6 +3,11 @@ sudo: false
node_js:
- "6.10.3"
cache:
ccache: true
directories:
- node_modules
services:
- docker
@ -34,6 +39,7 @@ os:
- osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH=/usr/local/opt/ccache/libexec:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export HOST_OS="darwin";
else

View File

@ -6,6 +6,7 @@ image: Visual Studio 2015
cache:
- C:\Users\appveyor\.node-gyp
- '%AppData%\npm-cache'
- node_modules
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- C:\Users\appveyor\AppData\Local\Temp\chocolatey -> appveyor.yml

View File

@ -52,7 +52,7 @@ if [ "$ARGV_OPERATING_SYSTEM" == "linux" ]; then
else
if [ "$ARGV_OPERATING_SYSTEM" == "darwin" ]; then
./scripts/build/check-dependency.sh brew
brew install jq
brew install ccache jq
elif [ "$ARGV_OPERATING_SYSTEM" == "win32" ]; then
./scripts/build/check-dependency.sh choco
choco install nsis -version 2.51