mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Fix 'flask db upgrade' not working on CI
Related to: https://github.com/alphagov/notifications-aws/pull/905 Previously this would fail because the Docker image we use for CI builds doesn't have an 'environment.sh' file; it uses preset env vars instead. This makes the command to upgrade the DB optional - if the env file is missing, the error should be self evident.
This commit is contained in:
2
Makefile
2
Makefile
@@ -25,7 +25,7 @@ NOTIFY_CREDENTIALS ?= ~/.notify-credentials
|
|||||||
bootstrap: generate-version-file ## Set up everything to run the app
|
bootstrap: generate-version-file ## Set up everything to run the app
|
||||||
pip3 install -r requirements_for_test.txt
|
pip3 install -r requirements_for_test.txt
|
||||||
createdb notification_api || true
|
createdb notification_api || true
|
||||||
. environment.sh && flask db upgrade
|
(. environment.sh && flask db upgrade) || flask db upgrade
|
||||||
|
|
||||||
.PHONY: run-flask
|
.PHONY: run-flask
|
||||||
run-flask: ## Run flask
|
run-flask: ## Run flask
|
||||||
|
|||||||
Reference in New Issue
Block a user