Speed up ci (#451)

This commit is contained in:
Sung Won Cho 2020-04-25 15:24:33 +10:00 committed by GitHub
commit ae8531fe11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,10 +29,10 @@ endif
@echo "==> installing js dependencies"
ifeq ($(CI), true)
@(cd ${currentDir} && npm install --unsafe-perm=true)
@(cd ${currentDir}/web && npm install --unsafe-perm=true)
@(cd ${currentDir}/browser && npm install --unsafe-perm=true)
@(cd ${currentDir}/jslib && npm install --unsafe-perm=true)
@(cd ${currentDir} && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true)
@(cd ${currentDir}/web && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true)
@(cd ${currentDir}/browser && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true)
@(cd ${currentDir}/jslib && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true)
else
@(cd ${currentDir} && npm install)
@(cd ${currentDir}/web && npm install)