mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +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:
|
node_js:
|
||||||
- "6.10.3"
|
- "6.10.3"
|
||||||
|
|
||||||
|
cache:
|
||||||
|
ccache: true
|
||||||
|
directories:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
@ -34,6 +39,7 @@ os:
|
|||||||
- osx
|
- osx
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH=/usr/local/opt/ccache/libexec:$PATH; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
export HOST_OS="darwin";
|
export HOST_OS="darwin";
|
||||||
else
|
else
|
||||||
|
@ -6,6 +6,7 @@ image: Visual Studio 2015
|
|||||||
cache:
|
cache:
|
||||||
- C:\Users\appveyor\.node-gyp
|
- C:\Users\appveyor\.node-gyp
|
||||||
- '%AppData%\npm-cache'
|
- '%AppData%\npm-cache'
|
||||||
|
- node_modules
|
||||||
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
||||||
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
||||||
- C:\Users\appveyor\AppData\Local\Temp\chocolatey -> appveyor.yml
|
- C:\Users\appveyor\AppData\Local\Temp\chocolatey -> appveyor.yml
|
||||||
|
@ -52,7 +52,7 @@ if [ "$ARGV_OPERATING_SYSTEM" == "linux" ]; then
|
|||||||
else
|
else
|
||||||
if [ "$ARGV_OPERATING_SYSTEM" == "darwin" ]; then
|
if [ "$ARGV_OPERATING_SYSTEM" == "darwin" ]; then
|
||||||
./scripts/build/check-dependency.sh brew
|
./scripts/build/check-dependency.sh brew
|
||||||
brew install jq
|
brew install ccache jq
|
||||||
elif [ "$ARGV_OPERATING_SYSTEM" == "win32" ]; then
|
elif [ "$ARGV_OPERATING_SYSTEM" == "win32" ]; then
|
||||||
./scripts/build/check-dependency.sh choco
|
./scripts/build/check-dependency.sh choco
|
||||||
choco install nsis -version 2.51
|
choco install nsis -version 2.51
|
||||||
|
Loading…
x
Reference in New Issue
Block a user