mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
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:
parent
2008c50ebf
commit
65210e4cbc
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user