|
|
|
@ -77,29 +77,7 @@ jobs: |
|
|
|
. venv/bin/activate |
|
|
|
sleep 1 |
|
|
|
flask db upgrade |
|
|
|
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: bdtest |
|
|
|
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 db migrate |
|
|
|
sleep 1 |
|
|
|
flask test |
|
|
|
environment: |
|
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
|
|