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:
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- 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:
build_and_test:
jobs:
@ -36,5 +54,8 @@ workflows:
requires:
- build
- test:
requires:
- build
- test_e2e:
requires:
- build
Loading…
Cancel
Save