-
Notifications
You must be signed in to change notification settings - Fork 36
/
Makefile
32 lines (23 loc) · 814 Bytes
/
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
# Makefile
.PHONY: apply plan sanity-check test-setup test
plan:
terraform get --update=true
terraform plan --var-file=config.json --out plan.out
apply:
terraform apply plan.out
sanity-check: venv
venv/bin/python bin/sanity_check.py
test-setup:
test/setup.sh
test:
test/test_terraform_validate.py
# Python virtualenv automatic setup. Ensures that targets relying on the virtualenv always have an updated python to
# use.
#
# This is intended for developer convenience. Do not attempt to make venv in a Docker container or use a virtualenv in
# docker container because you will be going into a world of darkness.
venv: venv/bin/activate
venv/bin/activate: requirements.txt
test -d venv || virtualenv venv --quiet --python python3
venv/bin/pip install -Uqr requirements.txt
touch venv/bin/activate