Browse Source

Droning building Sun Jan 21 18:47:08 -02 2018

luis 7 years ago
parent
commit
b913828e95
1 changed files with 30 additions and 7 deletions
  1. 30 7
      .drone.yml

+ 30 - 7
.drone.yml

@@ -1,18 +1,41 @@
+workspace:
+  base: /app
+  path: .
+
 pipeline:
-  backend:
+  backend-deps: 
     image: golang
-    commands:
-      - GOPATH=$(pwd)/go/deps:$(pwd)/go
+    environment:
+      - GOPATH=/app/go/deps:/app/go
+    commands: 
       - go get ./go/src/...
       - go get -t ./go/src/...
+  frontend-deps:
+    image: node:6
+      commands: 
+        - cd browser/vue-flow && yarn 
+
+  backend-test:
+    image: golang
+    environment:
+      - GOPATH=/app/go/deps:/app/go
       - go test ./go/src/...
-      - CGO_ENABLED=0 go build flowserver/cmd/flowserver
-  frontend:
+    
+
+
+        
+  backend-build:
+    image: golang
+    commands:
+      - ls -la
+      - ls -la go/bin
+      - CGO_ENALED=0 go build flowserver/cmd/flowserver
+  frontend-build:
     image: node:6
     commands:
-      - cd browser/vue-flow && yarn
       - yarn build
-  dist:
+  
+    dist:
     image: docker
     commands:
       - mkdir -p DIST