fix(ci): restore nvmrc, we still need to manage nodejs versions

This commit is contained in:
Łukasz Mierzwa
2018-10-03 10:51:25 +01:00
parent 4e3635bc98
commit 9e88f3bc0f
2 changed files with 5 additions and 1 deletions

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
8.12.0

View File

@@ -7,7 +7,6 @@ defaults_go: &DEFAULTS_GO
defaults_js: &DEFAULTS_JS
language: node_js
node_js: "8.12.0"
# we run make to install everything
install: []
cache:
@@ -63,6 +62,10 @@ jobs:
cache:
# disable cache so we always build from scratch
directories: []
before_script:
# this stage needs to build everything including assets file and that
# requires running webpack, so we need nodejs here
- nvm install $(< .nvmrc)
script:
# compile assets via webpack and build those into bindata_assetfs.go file
- make bindata_assetfs.go