|
|
|
@ -23,7 +23,6 @@ jobs: |
|
|
|
- restore_cache: |
|
|
|
keys: |
|
|
|
- dependencies-{{ checksum "requirements/dev.txt" }}-{{ checksum "requirements/prod.txt" }} |
|
|
|
- dependencies- |
|
|
|
- run: |
|
|
|
name: install python and dependencies |
|
|
|
command: | |
|
|
|
@ -59,32 +58,6 @@ jobs: |
|
|
|
command: | |
|
|
|
. venv/bin/activate |
|
|
|
flask db migrate |
|
|
|
# - run: |
|
|
|
# name: db upgrade |
|
|
|
# environment: |
|
|
|
# FLASK_APP: /home/circleci/repo/autoapp.py |
|
|
|
# FLASK_DEBUG: 0 |
|
|
|
# POSTGRES_USER: postgres |
|
|
|
# POSTGRES_DB: bdtest |
|
|
|
# POSTGRES_PASSWORD: somePwd |
|
|
|
# POSTGRES_PORT: 5432 |
|
|
|
# DATABASE_URL: postgresql://postgres:somePwd@localhost:5432/postgres |
|
|
|
# command: | |
|
|
|
# . venv/bin/activate |
|
|
|
# flask db upgrade |
|
|
|
# - run: |
|
|
|
# name: flask test |
|
|
|
# environment: |
|
|
|
# FLASK_APP: /home/circleci/repo/autoapp.py |
|
|
|
# FLASK_DEBUG: 0 |
|
|
|
# POSTGRES_USER: postgres |
|
|
|
# POSTGRES_DB: bdtest |
|
|
|
# POSTGRES_PASSWORD: somePwd |
|
|
|
# POSTGRES_PORT: 5432 |
|
|
|
# DATABASE_URL: postgresql://postgres:somePwd@localhost:5432/postgres |
|
|
|
# command: | |
|
|
|
# . venv/bin/activate |
|
|
|
# flask test |
|
|
|
- run: docker container stop flask_db_test |
|
|
|
- run: docker container rm flask_db_test |
|
|
|
- run: unset DATABASE_URL |
|
|
|
|