Browse Source

Update config.yml

main
Alexandre SOARES 5 years ago
parent
commit
aeaf77360a
  1. 10
      .circleci/config.yml

10
.circleci/config.yml

@ -17,6 +17,8 @@ jobs:
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- run: yarn install - run: yarn install
- run: sudo apt-get update
- run: sudo apt-get install postgresql-client-9.6
- save_cache: - save_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
paths: paths:
@ -60,9 +62,9 @@ jobs:
username: xaela37 username: xaela37
password: $DOCKERHUB_PASSWORD password: $DOCKERHUB_PASSWORD
environment: environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: pguser
POSTGRES_DB: pgdb
POSTGRES_PASSWORD: pass
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -73,4 +75,4 @@ jobs:
name: "yarn test" name: "yarn test"
command: yarn test:e2e command: yarn test:e2e
environment: environment:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
DATABASE_URL: postgres://pguser:pass@localhost:5432/pgdb
Loading…
Cancel
Save