|
|
@ -61,25 +61,12 @@ jobs: |
|
|
. venv/bin/activate |
|
|
. venv/bin/activate |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
flask db upgrade |
|
|
flask db upgrade |
|
|
|
|
|
slask test |
|
|
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 |
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
FLASK_DEBUG: 1 |
|
|
FLASK_DEBUG: 1 |
|
|
# 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 |
|
|
|
|
|
FLASK_DEBUG: 1 |
|
|
|
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
|
|
|
- save_cache: |
|
|
- save_cache: |
|
|
paths: |
|
|
paths: |
|
|
- venv |
|
|
- venv |
|
|
|