|
|
|
@ -57,7 +57,7 @@ jobs: |
|
|
|
environment: |
|
|
|
POSTGRES_USER: myUsr |
|
|
|
POSTGRES_PASSOWRD: somePwd |
|
|
|
POSTGRES_DB: bdtest |
|
|
|
POSTGRES_DB: myUsr |
|
|
|
|
|
|
|
working_directory: ~/repo |
|
|
|
|
|
|
|
@ -72,20 +72,41 @@ jobs: |
|
|
|
# fallback to using the latest cache if no exact match is found |
|
|
|
|
|
|
|
- run: |
|
|
|
name: bd upgrade & test |
|
|
|
name: bd upgrade |
|
|
|
command: | |
|
|
|
. venv/bin/activate |
|
|
|
sleep 1 |
|
|
|
flask db upgrade |
|
|
|
sleep 1 |
|
|
|
environment: |
|
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
|
FLASK_APP: /home/circleci/repo/autoapp.py |
|
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
|
FLASK_DEBUG: 1 |
|
|
|
POSTGRES_USER: postgres |
|
|
|
POSTGRES_DB: myUsr |
|
|
|
POSTGRES_PASSWORD: somePwd |
|
|
|
POSTGRES_PORT: 5432 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# run tests! |
|
|
|
# this example uses Django's built-in test-runner |
|
|
|
# other common Python testing frameworks include pytest and nose |
|
|
|
# https://pytest.org |
|
|
|
# https://nose.readthedocs.io |
|
|
|
- run: |
|
|
|
name: run tests |
|
|
|
command: | |
|
|
|
. venv/bin/activate |
|
|
|
flask test |
|
|
|
environment: |
|
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
|
FLASK_APP: /home/circleci/repo/autoapp.py |
|
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/bdtest |
|
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
|
FLASK_DEBUG: 1 |
|
|
|
POSTGRES_USER: postgres |
|
|
|
POSTGRES_DB: bdtest |
|
|
|
POSTGRES_DB: myUsr |
|
|
|
POSTGRES_PASSWORD: somePwd |
|
|
|
POSTGRES_PORT: 5432 |
|
|
|
|
|
|
|
|