Browse Source

Update config.yml

pull/9/head
LecomteAdrien 6 years ago
parent
commit
2311014afa
  1. 36
      .circleci/config.yml

36
.circleci/config.yml

@ -26,6 +26,26 @@ jobs:
key: yarn-packages-v3{{ checksum "yarn.lock" }} key: yarn-packages-v3{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
- image: circleci/postgres:9.6-alpine
environment:
POSTGRES_USER: psqluer
POSTGRES_DB: psdb
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb
JWT_SECRET: some string yo want
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
steps:
- checkout
- restore_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }}
- run: yarn test:e2e
- save_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }}
paths:
- ./node_modules
tests: tests:
docker: docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
@ -52,13 +72,10 @@ jobs:
- ./node_modules - ./node_modules
database: database:
docker:
- image: cimg/node:14.10.1
steps:
- checkout
- restore_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }}
- run: yarn test:e2e
- image: circleci/postgres:9.6-alpine
auth:
username: mydockerhub-user
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
environment: environment:
POSTGRES_USER: psqluer POSTGRES_USER: psqluer
POSTGRES_DB: psdb POSTGRES_DB: psdb
@ -67,6 +84,11 @@ jobs:
API_PORT: 3000 API_PORT: 3000
API_HOST: localhost API_HOST: localhost
API_PROTOCOL: http API_PROTOCOL: http
steps:
- checkout
- restore_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }}
- run: yarn test:e2e
- save_cache: - save_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }} key: yarn-packages-v3{{ checksum "yarn.lock" }}
paths: paths:
Loading…
Cancel
Save