Browse Source

Updated config.yml

main
HenriBoulnois 5 years ago
parent
commit
2748843ab7
  1. 30
      .circleci/config.yml

30
.circleci/config.yml

@ -52,6 +52,29 @@ jobs:
paths: paths:
- node_modules - node_modules
key: npm-v2-dependencies-{{ checksum "yarn.lock" }} key: npm-v2-dependencies-{{ checksum "yarn.lock" }}
e2etest:
docker:
- image: cimg/node:lts
auth:
username: henriboulnois
password: $DOCKERHUB_PASSWORD
environment:
TEST_DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb
- image: circleci/postgres:9.6.5-alpine-ram
auth:
username: mydockerhub-user
password: $DOCKERHUB_PASSWORD
steps:
- checkout
- restore_cache:
keys:
- npm-v2-dependencies-{{ checksum "yarn.lock" }}
- npm-v2-dependencies
- run: yarn test:e2e
- save_cache:
paths:
- node_modules
key: npm-v2-dependencies-{{ checksum "yarn.lock" }}
workflows: workflows:
build: build:
@ -63,4 +86,9 @@ workflows:
- unittest: - unittest:
requires: requires:
- yarninstall - yarninstall
- yarnlint
- yarnlint
- e2etest:
requires:
- yarninstall
- yarnlint
- unittest
Loading…
Cancel
Save