-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (40 loc) · 1.6 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
53
TF_DATA_DIR=/tmp/.terraform-aws-xray-lambda-segment-shim
XRAY_DAEMON_URL=https://s3.us-east-2.amazonaws.com/aws-xray-assets.us-east-2/xray-daemon/aws-xray-daemon-macos-3.x.zip
terraform-init:
mkdir -p ${TF_DATA_DIR}
cd terraform && pip install aws-xray-sdk --target .
rm -rf terraform/boto3 terraform/botocore
cd terraform && TF_DATA_DIR=${TF_DATA_DIR} terraform init
terraform-apply:
cd terraform && TF_DATA_DIR=${TF_DATA_DIR} terraform apply
terraform-destroy:
cd terraform && TF_DATA_DIR=${TF_DATA_DIR} terraform destroy
terraform-send-message:
QUEUE_URL=$$(cd terraform && terraform output --raw sqs_queue_url) && \
python ./terraform/test_terraform.py $$QUEUE_URL
install-xray-daemon-mac:
curl ${XRAY_DAEMON_URL} -o ~/Downloads/aws-xray-daemon-macos-3.x.zip
unzip ~/Downloads/aws-xray-daemon-macos-3.x.zip -d xray_daemon
run-xray-daemon-mac:
./xray_daemon/xray_mac -o -n eu-west-1
local-test:
pytest
mypy
pydocstyle
flake8
isort aws_xray_lambda_segment_shim tests terraform/*.py
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = doc_source
BUILDDIR = doc_build
HTML_DIR = docs
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" -P $(SPHINXOPTS) $(O)