Browse Source

try with db in build

main
Galimede 6 years ago
parent
commit
5052e91221
  1. 15
      .circleci/config.yml

15
.circleci/config.yml

@ -3,6 +3,12 @@ jobs:
build: build:
docker: docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
- image: circleci/postgres:latest
environment:
POSTGRES_USER: e2e
POSTGRES_DB: psdb
POSTGRES_PASSWORD: password
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -29,14 +35,9 @@ jobs:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run : yarn test:ci - run : yarn test:ci
test_e2e: test_e2e:
docker:
docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
- image: circleci/postgres:latest
environment:
POSTGRES_USER: e2e
POSTGRES_DB: psdb
POSTGRES_PASSWORD: password
steps:
steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}

Loading…
Cancel
Save