From bc6adfe920da94700183313f88ee667edfec831d Mon Sep 17 00:00:00 2001 From: dbroqua Date: Tue, 11 Feb 2020 20:23:48 +0100 Subject: [PATCH] Debug --- .gitlab-ci.yml | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b88f030..3cc2bcc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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