Browse Source

try another env method

main
Galimede 6 years ago
parent
commit
34f0fba13a
  1. 16
      .circleci/config.yml

16
.circleci/config.yml

@ -31,6 +31,12 @@ jobs:
test_e2e:
docker:
- image: cimg/node:14.10.1
environment:
DATABASE_URL: "postgres://e2e:test@localhost:5432/psdb"
API_PORT: 3000
API_HOST: "localhost"
API_PROTOCOL: "http"
JWT_SECRET: "youwontguess"
- image: circleci/postgres
environment:
POSTGRES_USER: e2e
@ -40,18 +46,10 @@ jobs:
- checkout
- restore_cache:
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run:
name: Waiting for POSTGRES
command: dockerize -wait tcp://localhost:5432 -timeout 1m
- run:
name: Launching e2e test
command: yarn test:e2e
environment:
DATABASE_URL: "postgres://e2e:test@localhost:5432/psdb"
API_PORT: 3000
API_HOST: "localhost"
API_PROTOCOL: "http"
JWT_SECRET: "youwontguess"
workflows:
build_and_test:

Loading…
Cancel
Save