MTLantoine 6 years ago
parent
commit
17fe41d111
  1. 43
      .circleci/config.yml

43
.circleci/config.yml

@ -29,24 +29,31 @@ jobs:
- npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install && yarn test:ci - run: yarn global add node-gyp && yarn install && yarn test:ci
# e2e_test:
# docker:
# - image: 'circleci/postgres:9.6.2-alpine'
# - image: 'circleci/node:12'
# steps:
# - checkout
# - run:
# command: yarn test:e2e
# environment:
# DATABASE_URL: postgres://antoine_mortelier:pass@localhost:5432/testpsdb
# JWT_SECRET: whatamidoinghere
# API_PORT: 3000
# API_HOST: localhost
# API_PROTOCOL: http
# - save_cache:
# key: yarn-cache{{ checksum "yarn.lock" }}
# paths:
# - ./node_modules
bddPostgres:
docker:
- image: cimg/node:12.18.4
environment:
DATABASE_URL: postgres://psqluser:password@localhost:5432/psdb
JWT_SECRET: some string
API_HOST: localhost
API_PROTOCOL: http
API_PORT: 3000
- image: circleci/postgres:9.6.2-alpine
environment:
POSTGRES_USER: psqluser
POSTGRES_DB: psdb
POSTGRES_PASSWORD: password
steps:
- checkout
- restore_cache:
keys:
- npm-v6-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test:e2e
documentation:
docker: *config
steps:
- checkout
- run: yarn buld:dock
workflows: workflows:
version: 2 version: 2

Loading…
Cancel
Save