From 6054dcfbd9f3b721da376ccaf468f9dfb715c21d Mon Sep 17 00:00:00 2001 From: Galimede Date: Mon, 2 Nov 2020 16:06:42 +0100 Subject: [PATCH] fix var env db --- .circleci/config.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 09efd47..23be61a 100644 --- a/.circleci/config.yml +++ b/.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: @@ -34,17 +28,22 @@ jobs: - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} - run : yarn test:ci - test_e2e: - docker: + test_e2e: + docker: - image: cimg/node:14.10.1 - steps: + - image: circleci/postgres + environment: + POSTGRES_USER: e2e + POSTGRES_DB: psdb + POSTGRES_PASSWORD: password + steps: - checkout - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} - 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