From 9d437163b884fa6a5198ce7bf5142fa0794377c4 Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Fri, 4 Sep 2020 16:33:14 +0200 Subject: [PATCH] Another try. --- .drone.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index d19acf1..00491d7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,37 +2,43 @@ kind: pipeline type: kubernetes name: back-end +workspace: + path: /drone/src + steps: - name: install dependencies image: sandervocke/postgres_node:12 commands: - npm install - - cd server && npm install; cd .. + - cd /drone/src/server && npm install - name: back-end test (SQLite3) image: node commands: - - cd server && ./test/test.sh --sqlite ; cd .. + - cd /drone/src/server && ./test/test.sh --sqlite - name: back-end test (PostgreSQL) image: node commands: - POSTGRES_USER=mudbase POSTGRES_DATABASE=mudbase POSTGRES_DB=mudbase \ - cd server && ./test/test.sh --postgres --start-postgres-testcontainer ; cd .. + cd /drone/src/server && ./test/test.sh --postgres --start-postgres-testcontainer --- kind: pipeline type: kubernetes name: front-end +workspace: + path: /drone/src + steps: - name: install dependencies image: node commands: - - npm install - - cd client && npm install; cd .. + - cd /drone/src && npm install + - cd /drone/src/client && npm install - name: front-end compile image: node commands: - - cd client && ./node_modules/.bin/tsc; cd .. + - cd /drone/src/client && ./node_modules/.bin/tsc; cd ..