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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
64 additions and
37 deletions
-
.circleci/config.yml
|
|
@ -1,4 +1,3 @@ |
|
|
|
|
|
|
|
|
version: 2.1 |
|
|
version: 2.1 |
|
|
workflows: |
|
|
workflows: |
|
|
build_and_test: |
|
|
build_and_test: |
|
|
@ -10,10 +9,14 @@ workflows: |
|
|
- tests: |
|
|
- tests: |
|
|
requires: |
|
|
requires: |
|
|
- build |
|
|
- build |
|
|
|
|
|
- db: |
|
|
|
|
|
requires: |
|
|
|
|
|
- build |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
build: |
|
|
build: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
|
|
|
|
|
|
- image: cimg/node:12.18 |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -25,7 +28,7 @@ jobs: |
|
|
- ./node_modules |
|
|
- ./node_modules |
|
|
tests: |
|
|
tests: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
|
|
|
|
|
|
- image: cimg/node:12.18 |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -37,7 +40,7 @@ jobs: |
|
|
- ./node_modules |
|
|
- ./node_modules |
|
|
lint: |
|
|
lint: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
|
|
|
|
|
|
- image: cimg/node:12.18 |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -47,3 +50,27 @@ jobs: |
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
- ./node_modules |
|
|
- ./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 |