-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (43 loc) · 1.1 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
HUMILIS := .env/bin/humilis
PIP := .env/bin/pip
PYTHON := .env/bin/python
TWINE := .env/bin/twine
TOX := .env/bin/tox
STAGE := DEV
HUMILIS_ENV_PATH := tests/integration/
HUMILIS_ENV := humilis-asg
# create virtual environment
.env:
virtualenv .env -p python3
# install dev dependencies, create layers directory
develop: .env
.env/bin/pip install -r requirements-dev.txt
# run integration tests
test: .env
$(PIP) install tox
$(TOX)
# remove .tox and .env dirs
clean:
rm -rf .env .tox
# configure humilis
configure:
$(HUMILIS) configure --local
# deploy the test environment
create: develop
$(HUMILIS) create \
--stage $(STAGE) \
--output $(HUMILIS_ENV)-$(STAGE).outputs.yaml \
$(HUMILIS_ENV_PATH)$(HUMILIS_ENV).yaml.j2
# update the test deployment
update: develop
$(HUMILIS) update \
--stage $(STAGE) \
--output $(HUMILIS_ENV)-$(STAGE).outputs.yaml \
$(HUMILIS_ENV_PATH)$(HUMILIS_ENV).yaml.j2
# delete the test deployment
delete: develop
$(PYTHON) ./cleanup.py $(HUMILIS_ENV_PATH)$(HUMILIS_ENV).yaml.j2 $(STAGE)
# upload to Pypi
pypi: develop
$(PYTHON) setup.py sdist
$(TWINE) upload dist/*