]> source.dussan.org Git - gitea.git/commitdiff
Add pre-build step for nodejs stuff (#2581)
authorMorlinest <Morlinest@users.noreply.github.com>
Sun, 24 Sep 2017 21:49:32 +0000 (23:49 +0200)
committerLauris BH <lauris@nix.lv>
Sun, 24 Sep 2017 21:49:32 +0000 (00:49 +0300)
.drone.yml

index b42f067329dea8b9fb57364c63ef2e83077f808e..703d6525b1bc1183e7ba385850858c0c8615123f 100644 (file)
@@ -9,6 +9,14 @@ clone:
     tags: true
 
 pipeline:
+  pre-build:
+    image: webhippie/nodejs:latest
+    pull: true
+    commands:
+      - npm install
+      - make stylesheets-check
+    when:
+      event: [ push, tag, pull_request ]
   build:
     image: webhippie/golang:edge
     pull: true
@@ -16,14 +24,11 @@ pipeline:
       TAGS: bindata sqlite
       GOPATH: /srv/app
     commands:
-      - apk -U add nodejs nodejs-npm
-      - npm install
       - make clean
       - make generate
       - make vet
       - make lint
       - make fmt-check
-      - make stylesheets-check
       - make misspell-check
       - make test-vendor
       - make build