Browse Source

fix var env db

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

17
.circleci/config.yml

@ -3,12 +3,6 @@ jobs:
build: build:
docker: docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
- image: circleci/postgres:latest
environment:
POSTGRES_USER: e2e
POSTGRES_DB: psdb
POSTGRES_PASSWORD: password
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -35,16 +29,21 @@ jobs:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run : yarn test:ci - run : yarn test:ci
test_e2e: test_e2e:
docker:
docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
steps:
- image: circleci/postgres
environment:
POSTGRES_USER: e2e
POSTGRES_DB: psdb
POSTGRES_PASSWORD: password
steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run: - run:
command: yarn test:e2e command: yarn test:e2e
environment: environment:
DATABASE_URL: postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB
DATABASE_URL: postgres://e2e:password@localhost:5432/psdb
API_PORT: 3000 API_PORT: 3000
API_HOST: localhost API_HOST: localhost
API_PROTOCOL: http API_PROTOCOL: http

Loading…
Cancel
Save