Browse Source

fix e2e

circleci-project-setup
Louis Dutoit 6 years ago
parent
commit
d3292dd4fc
  1. 34
      .circleci/config.yml

34
.circleci/config.yml

@ -35,24 +35,26 @@ jobs:
- run: yarn test:ci - run: yarn test:ci
e2etest:
docker: *shared_docker
bddPostgres:
docker:
- image: cimg/node:12.18.4
environment: environment:
POSTGRES_USER: user_e2e
POSTGRES_DB: db
DATABASE_URL: postgres://psqluser:password@localhost:5432/psdb
JWT_SECRET: some string
API_HOST: localhost
API_PROTOCOL: http
API_PORT: 3000
- image: circleci/postgres:9.6.2-alpine
environment:
POSTGRES_USER: psqluser
POSTGRES_DB: psdb
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
steps:
- checkout
- restore_cache:
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run:
command: yarn test:e2e
environment:
DATABASE_URL: postgres://user_e2e:password@localhost:5432/db
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
JWT_SECRET: secret
steps:
- checkout
- restore_cache:
keys:
- npm-v6-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test:e2e
workflows: workflows:
version: 2 version: 2

Loading…
Cancel
Save