Browse Source

remove db

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

26
.circleci/config.yml

@ -5,6 +5,7 @@ jobs:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
name: restore yarn package cache name: restore yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
@ -14,6 +15,7 @@ jobs:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
lint: lint:
docker: docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
@ -42,29 +44,7 @@ jobs:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
database:
docker:
- image: circleci/postgres:latest
environment:
POSTGRES_USER: psqluser
POSTGRES_DB: psdb
POSTGRES_PASSWORD: psqlpwd
steps:
- restore_cache:
name: restore yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run:
command: yarn test:e2e
environment:
DATABASE_URL: postgres://psqluser@localhost:5432/psdb
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
- save_cache:
name: save yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths:
- ./node_modules
workflows: workflows:
build_and_test: build_and_test:
jobs: jobs:

Loading…
Cancel
Save