Browse Source

adding database with stable previous version

pull/2/head
Neel Coffin 6 years ago
parent
commit
2b72b2db7c
  1. 19
      .circleci/config.yml

19
.circleci/config.yml

@ -42,6 +42,22 @@ jobs:
key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths:
- ./node_modules
database:
docker:
- image: circleci/postgres:9.6.2-alpine
environment:
POSTGRES_USER: psqluser
POSTGRES_PASSWORD: psqlpassword
POSTGRES_DB: psdb
steps:
- checkout
- 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:
@ -52,6 +68,9 @@ workflows:
- unit-test:
requires:
- build
- database:
requires:
- build

Loading…
Cancel
Save