25 lines
483 B
YAML
25 lines
483 B
YAML
|
pipeline:
|
||
|
build:
|
||
|
image: node:${NODE_VERSION}
|
||
|
environment:
|
||
|
- DB_HOST=database
|
||
|
- DB_PORT=5432
|
||
|
- DB_USER=postgres
|
||
|
- DB_NAME=mystorage
|
||
|
- NODE_ENV=test
|
||
|
- HOST_URL="http://localhost:10230"
|
||
|
commands:
|
||
|
- npm install
|
||
|
- npm run dbtool
|
||
|
- npm run test
|
||
|
services:
|
||
|
database:
|
||
|
image: postgres
|
||
|
environment:
|
||
|
- POSTGRES_USER=postgres
|
||
|
- POSTGRES_DB=mystorage
|
||
|
matrix:
|
||
|
NODE_VERSION:
|
||
|
- latest
|
||
|
- "8"
|
||
|
- "9"
|