Browse Source

💚without db migrate and with origin Procfile

main
Julien Dudek 6 years ago
parent
commit
a6857ad1da
  1. 24
      .circleci/config.yml
  2. 2
      Procfile

24
.circleci/config.yml

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

2
Procfile

@ -1 +1 @@
web: flask db upgrade;gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3
web: gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3
Loading…
Cancel
Save