Debug
This commit is contained in:
parent
5f50c568ed
commit
bc6adfe920
1 changed files with 19 additions and 18 deletions
|
@ -1,8 +1,5 @@
|
|||
image: node:latest
|
||||
|
||||
services:
|
||||
- postgres:latest
|
||||
|
||||
variables:
|
||||
NODE_ENV: "ci"
|
||||
POSTGRES_DB: "postgres"
|
||||
|
@ -10,31 +7,35 @@ variables:
|
|||
POSTGRES_PASSWORD: "postgres"
|
||||
|
||||
stages:
|
||||
- build
|
||||
- migrate
|
||||
# - 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
|
||||
# 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:
|
||||
reports:
|
||||
junit: junit.xml
|
||||
tags:
|
||||
- docker
|
||||
|
|
Loading…
Reference in a new issue