-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 1.17 KB
/
Makefile
File metadata and controls
33 lines (26 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
include MakeCitron.Makefile
install-dev-data: ## install-dev-data: Insert dev data
$(LOG)
flask install-dev-data
upgrade-db:
$(LOG)
$(VENV)/bin/alembic upgrade head
install-db: install-db-super ## install-db: Install apparatus database
$(LOG)
$(PIPENV) run flask drop-db
$(MAKE) upgrade-db
check-python:
$(LOG)
FLASK_CONFIG=$(FLASK_TEST_CONFIG) py.test lib $(PYTEST_ARGS) -p no:warnings --cov lib.backend
deploy-test:
$(LOG)
@echo "Communicating with Junkrat..."
@wget --no-verbose --content-on-error -O- --header="Content-Type:application/json" --post-data=$(subst $(newline),,$(JUNKRAT_PARAMETERS)) $(JUNKRAT) | tee $(JUNKRAT_RESPONSE)
if [[ $$(tail -n1 $(JUNKRAT_RESPONSE)) != "Success" ]]; then exit 9; fi
wget --user=$(CI_PROJECT_NAME) --password=$(PASSWD) --no-verbose --content-on-error -O- $(URL_TEST)
deploy-prod:
$(LOG)
@echo "Communicating with Junkrat..."
@wget --no-verbose --content-on-error -O- --header="Content-Type:application/json" --post-data=$(subst $(newline),,$(JUNKRAT_PARAMETERS)) $(JUNKRAT) | tee $(JUNKRAT_RESPONSE)
if [[ $$(tail -n1 $(JUNKRAT_RESPONSE)) != "Success" ]]; then exit 9; fi
wget --no-verbose --content-on-error -O- $(URL_PROD)