sequelize-middleware/.gitlab-ci.yml
2020-02-11 20:37:34 +01:00

42 lines
715 B
YAML

image: node:latest
variables:
NODE_ENV: "ci"
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
stages:
# - build
# - migrate
- test
cache:
paths:
- node_modules/
# install:
# stage: build
# script:
# - yarn install
# artifacts:
# paths:
# - node_modules/
# migrate:
# stage: migrate
# script:
# - ./node_modules/.bin/sequelize db:migrate
testing:
stage: test
services:
- postgres:latest
script:
- yarn install
- ./node_modules/.bin/sequelize db:migrate
- yarn test --ci --collectCoverage=true
artifacts:
paths:
- junit.xml
reports:
junit: junit.xml