Add pre-build step for nodejs stuff (#2581)
parent
086eb62691
commit
0b0d85c90d
11
.drone.yml
11
.drone.yml
|
@ -9,6 +9,14 @@ clone:
|
||||||
tags: true
|
tags: true
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
pre-build:
|
||||||
|
image: webhippie/nodejs:latest
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- make stylesheets-check
|
||||||
|
when:
|
||||||
|
event: [ push, tag, pull_request ]
|
||||||
build:
|
build:
|
||||||
image: webhippie/golang:edge
|
image: webhippie/golang:edge
|
||||||
pull: true
|
pull: true
|
||||||
|
@ -16,14 +24,11 @@ pipeline:
|
||||||
TAGS: bindata sqlite
|
TAGS: bindata sqlite
|
||||||
GOPATH: /srv/app
|
GOPATH: /srv/app
|
||||||
commands:
|
commands:
|
||||||
- apk -U add nodejs nodejs-npm
|
|
||||||
- npm install
|
|
||||||
- make clean
|
- make clean
|
||||||
- make generate
|
- make generate
|
||||||
- make vet
|
- make vet
|
||||||
- make lint
|
- make lint
|
||||||
- make fmt-check
|
- make fmt-check
|
||||||
- make stylesheets-check
|
|
||||||
- make misspell-check
|
- make misspell-check
|
||||||
- make test-vendor
|
- make test-vendor
|
||||||
- make build
|
- make build
|
||||||
|
|
Loading…
Reference in New Issue