Browse Source

Merge pull request #9 from jootha/circleci-project-setup

etape 5 : psql sans erreurs d'indentations
main
LecomteAdrien 6 years ago
committed by GitHub
parent
commit
70040d86cc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      .circleci/config.yml

35
.circleci/config.yml

@ -1,4 +1,3 @@
version: 2.1
workflows:
build_and_test:
@ -10,10 +9,14 @@ workflows:
- tests:
requires:
- build
- db:
requires:
- build
jobs:
build:
docker:
- image: cimg/node:14.10.1
- image: cimg/node:12.18
steps:
- checkout
- restore_cache:
@ -25,7 +28,7 @@ jobs:
- ./node_modules
tests:
docker:
- image: cimg/node:14.10.1
- image: cimg/node:12.18
steps:
- checkout
- restore_cache:
@ -37,7 +40,7 @@ jobs:
- ./node_modules
lint:
docker:
- image: cimg/node:14.10.1
- image: cimg/node:12.18
steps:
- checkout
- restore_cache:
@ -47,3 +50,27 @@ jobs:
key: yarn-packages-v3{{ checksum "yarn.lock" }}
paths:
- ./node_modules
db:
docker:
- image: cimg/node:12.18
environment:
DATABASE_URL: "postgres://psqluer:test@localhost:5432/psdb"
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
JWT_SECRET: some string yo want
- image: circleci/postgres:9.6.2-alpine
environment:
POSTGRES_USER: psqluer
POSTGRES_DB: psdb
steps:
- checkout
- restore_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }}
- run:
command: yarn test:e2e
- save_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }}
paths:
- ./node_modules
Loading…
Cancel
Save