|
|
|
@ -2,8 +2,12 @@ version: 2 |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
docker: |
|
|
|
- image: circleci/python |
|
|
|
- image: circleci/postgres |
|
|
|
- image: circleci/python:3.9.1 |
|
|
|
- image: circleci/postgres:9.6.5 |
|
|
|
environment: |
|
|
|
POSTGRES_DB: psqluer |
|
|
|
POSTGRES_USER: myUsr |
|
|
|
POSTGRES_PASSWORD: somePwd |
|
|
|
working_directory: ~/repo |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
@ -20,17 +24,10 @@ jobs: |
|
|
|
- run: |
|
|
|
name: Setup dababase |
|
|
|
environment: |
|
|
|
POSTGRES_DB: psqluer |
|
|
|
POSTGRES_USER: myUsr |
|
|
|
POSTGRES_PASSWORD: somePwd |
|
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
|
FLASK_DEBUG: 0 |
|
|
|
command: flask db upgrade |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exit 1; \ |
|
|
|
fi |
|
|
|
workflows: |
|
|
|
version: 2 |
|
|
|
build-test: |
|
|
|
|