Browse Source

add test_e2e

main
Galimede 6 years ago
parent
commit
cea5e18bd7
  1. 21
      .circleci/config.yml

21
.circleci/config.yml

@ -28,6 +28,24 @@ jobs:
- restore_cache: - restore_cache:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run : yarn test:ci - run : yarn test:ci
test_e2e:
docker:
- image: cimg/node:14.10.1
- image: postgres:9.6-jessie
environment:
POSTGRES_USER: e2e
POSTGRES_DB: psdb
steps:
- checkout
- restore_cache:
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run:
command: yarn test:e2e
environment:
DATABASE_URL: postgres://$POSTGRES_USER@localhost:5432/$POSTGRES_DB
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
workflows: workflows:
build_and_test: build_and_test:
jobs: jobs:
@ -36,5 +54,8 @@ workflows:
requires: requires:
- build - build
- test: - test:
requires:
- build
- test_e2e:
requires: requires:
- build - build
Loading…
Cancel
Save