-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (57 loc) · 1.1 KB
/
Makefile
File metadata and controls
63 lines (57 loc) · 1.1 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.DEFAULT_GOAL := build
.PHONY: build integration-tests e2e-tests
BUILD_DIR = build/
build:
GOOS=linux GOARCH=amd64 go build -o ${BUILD_DIR}lambda ./cmd/lambda
@cd ${BUILD_DIR} \
&& if [ -f lambda.zip ]; then rm lambda.zip; fi \
&& zip lambda.zip -r . \
&& cd -
integration-tests:
ifndef AWS_REGION
@echo variable AWS_REGION unset
false
endif
ifndef AWS_PROFILE
@echo variable AWS_PROFILE unset
false
endif
ifndef BUCKET_NAME
@echo variable BUCKET_NAME unset
false
endif
ifndef VERIFIED_DOMAIN
@echo variable VERIFIED_DOMAIN unset
false
endif
go test -tags="integration" ./...
e2e-tests:
ifndef SENDER
@echo variable SENDER unset
false
endif
ifndef RECIPIENT
@echo variable RECIPIENT unset
false
endif
ifndef AWS_REGION
@echo variable AWS_REGION unset
false
endif
ifndef AWS_PROFILE
@echo variable AWS_PROFILE unset
false
endif
ifndef TESTMAILAPP_APIKEY
@echo variable TESTMAILAPP_APIKEY unset
false
endif
ifndef TESTMAILAPP_NAMESPACE
@echo variable TESTMAILAPP_NAMESPACE unset
false
endif
ifndef TESTMAILAPP_TAG
@echo variable TESTMAILAPP_TAG unset
false
endif
go test -tags="e2e" ./e2e