|
|
@ -72,13 +72,12 @@ jobs: |
|
|
# fallback to using the latest cache if no exact match is found |
|
|
# fallback to using the latest cache if no exact match is found |
|
|
|
|
|
|
|
|
- run: |
|
|
- run: |
|
|
name: bd upgrade |
|
|
|
|
|
|
|
|
name: db init & migrate |
|
|
command: | |
|
|
command: | |
|
|
. venv/bin/activate |
|
|
. venv/bin/activate |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
flask db init |
|
|
flask db init |
|
|
flask db migrate |
|
|
flask db migrate |
|
|
flask db upgrade |
|
|
|
|
|
environment: |
|
|
environment: |
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
FLASK_APP: /home/circleci/repo/autoapp.py |
|
|
FLASK_APP: /home/circleci/repo/autoapp.py |
|
|
@ -94,9 +93,11 @@ jobs: |
|
|
# https://pytest.org |
|
|
# https://pytest.org |
|
|
# https://nose.readthedocs.io |
|
|
# https://nose.readthedocs.io |
|
|
- run: |
|
|
- run: |
|
|
name: run tests |
|
|
|
|
|
|
|
|
name: run upgrade & tests |
|
|
command: | |
|
|
command: | |
|
|
. venv/bin/activate |
|
|
. venv/bin/activate |
|
|
|
|
|
sleep 1 |
|
|
|
|
|
flask db upgrade |
|
|
flask test |
|
|
flask test |
|
|
environment: |
|
|
environment: |
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
|