|
|
@ -72,11 +72,11 @@ 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: db & migrate |
|
|
|
|
|
|
|
|
name: db migrate |
|
|
command: | |
|
|
command: | |
|
|
. venv/bin/activate |
|
|
. venv/bin/activate |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
flask db init |
|
|
|
|
|
|
|
|
flask db migrate |
|
|
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 |
|
|
@ -92,11 +92,10 @@ jobs: |
|
|
# https://pytest.org |
|
|
# https://pytest.org |
|
|
# https://nose.readthedocs.io |
|
|
# https://nose.readthedocs.io |
|
|
- run: |
|
|
- run: |
|
|
name: run upgrade & tests |
|
|
|
|
|
|
|
|
name: run tests |
|
|
command: | |
|
|
command: | |
|
|
. venv/bin/activate |
|
|
. venv/bin/activate |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
flask db upgrade |
|
|
|
|
|
flask test |
|
|
flask test |
|
|
environment: |
|
|
environment: |
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
|