fix(ci): nuke node_modules on failed install

Travis cache gets corrupted from time to time, try to work around that by nuking node_modules when npm install fails
This commit is contained in:
Łukasz Mierzwa
2020-03-26 18:44:11 +00:00
parent 14d7ea3dd5
commit 8eb905f2a4
2 changed files with 3 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ endif
.build/deps-build-node.ok: ui/package.json ui/package-lock.json
@mkdir -p .build
cd ui && npm install
cd ui && (npm install || (rm -fr $@ node_modules && npm install))
touch $@
.build/artifacts-bindata_assetfs.%: