-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
26 lines (22 loc) · 1.02 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
SHELL := /bin/bash
export PYTHONPATH := $(PYTHONPATH):./lambda/src
export TERRAFORM_PYTEST_DIR := $(PWD)/tests
include $(shell test -f .tardigrade-ci || curl -sSL -o .tardigrade-ci "https://raw.githubusercontent.com/plus3it/tardigrade-ci/master/bootstrap/Makefile.bootstrap"; echo .tardigrade-ci)
.PHONY: pytest/deps
pytest/deps:
@ echo "[@] Installing dependencies used for unit and integration tests"
@ python -m pip install \
-r requirements/requirements_dev.txt \
-r requirements/requirements_test.txt
.PHONY: python/deps
python/deps:
@ echo "[$@] Installing lambda dependencies"
@ python -m pip install -r lambda/src/requirements.txt
.PHONY: mockstack/pytest/lambda
mockstack/pytest/lambda:
@ echo "[$@] Running Terraform tests against LocalStack"
DOCKER_RUN_FLAGS="--network terraform_pytest_default --rm -e LOCALSTACK_HOST=localstack" \
TARDIGRADE_CI_DOCKERFILE=Dockerfile_test \
IMAGE_NAME=new-account-iam-role-integration-test:latest \
$(MAKE) docker/run target=terraform/pytest
@ echo "[$@]: Completed successfully!"