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