Browse Source

fix var env db

main
Galimede 6 years ago
parent
commit
6054dcfbd9
  1. 13
      .circleci/config.yml

13
.circleci/config.yml

@ -3,12 +3,6 @@ jobs:
build:
docker:
- image: cimg/node:14.10.1
- image: circleci/postgres:latest
environment:
POSTGRES_USER: e2e
POSTGRES_DB: psdb
POSTGRES_PASSWORD: password
steps:
- checkout
- restore_cache:
@ -37,6 +31,11 @@ jobs:
test_e2e:
docker:
- image: cimg/node:14.10.1
- image: circleci/postgres
environment:
POSTGRES_USER: e2e
POSTGRES_DB: psdb
POSTGRES_PASSWORD: password
steps:
- checkout
- restore_cache:
@ -44,7 +43,7 @@ jobs:
- run:
command: yarn test:e2e
environment:
DATABASE_URL: postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB
DATABASE_URL: postgres://e2e:password@localhost:5432/psdb
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http

Loading…
Cancel
Save