You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
894 B

kind: pipeline
type: kubernetes
name: back-end
workspace:
path: /drone/src
steps:
- name: install dependencies
image: sandervocke/postgres_node:12
commands:
- npm install
- cd /drone/src/server && npm install
- name: back-end test (SQLite3)
image: node
commands:
- cd /drone/src/server && ./test/test.sh --sqlite
- name: back-end test (PostgreSQL)
image: node
commands:
- /bin/bash -c "POSTGRES_USER=mudbase POSTGRES_DATABASE=mudbase POSTGRES_DB=mudbase 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:
- cd /drone/src && npm install
- cd /drone/src/client && npm install
- name: front-end compile
image: node
commands:
- cd /drone/src/client && ./node_modules/.bin/tsc; cd ..