Browse Source

Updated config.yml

main
Adrien-Ba 5 years ago
parent
commit
5c5db3f364
  1. 34
      .circleci/config.yml

34
.circleci/config.yml

@ -61,6 +61,33 @@ jobs:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
paths: paths:
- node_modules - node_modules
bddtest:
docker:
- image: cimg/node:lts
auth:
username: adrienba
password: $MYDOCKERHUB_PASSWORD
environment:
TEST_DATABASE_URL: postgresql://root@localhost/circle_test
- image: circleci/postgres:9.6.5-alpine-ram
auth:
username: adrienba
password: $DOCKERHUB_PASSWORD
steps:
- checkout
- restore_cache:
keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
- npm-v1-dependencies
- run:
name: "yarn test:e2e"
command: yarn test:e2e
- save_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
paths:
- node_modules
workflows: workflows:
@ -73,4 +100,9 @@ workflows:
- yarntest: - yarntest:
requires: requires:
- build - build
- yarnlint
- yarnlint
- bddtest:
requires:
- build
- yarnlint
- yarntest
Loading…
Cancel
Save