-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (47 loc) · 2.34 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.DEFAULT_GOAL=build
.PHONY: build test get run
clean:
go clean .
generate:
go generate -x
@echo "Generate complete: `date`"
vet: generate
go tool vet -composites=false *.go
get: clean
rm -rf $(GOPATH)/src/github.com/aws/aws-sdk-go
git clone --depth=1 https://github.com/aws/aws-sdk-go $(GOPATH)/src/github.com/aws/aws-sdk-go
rm -rf $(GOPATH)/src/github.com/go-ini/ini
git clone --depth=1 https://github.com/go-ini/ini $(GOPATH)/src/github.com/go-ini/ini
rm -rf $(GOPATH)/src/github.com/jmespath/go-jmespath
git clone --depth=1 https://github.com/jmespath/go-jmespath $(GOPATH)/src/github.com/jmespath/go-jmespath
rm -rf $(GOPATH)/src/github.com/Sirupsen/logrus
git clone --depth=1 https://github.com/Sirupsen/logrus $(GOPATH)/src/github.com/Sirupsen/logrus
rm -rf $(GOPATH)/src/github.com/mjibson/esc
git clone --depth=1 https://github.com/mjibson/esc $(GOPATH)/src/github.com/mjibson/esc
rm -rf $(GOPATH)/src/github.com/crewjam/go-cloudformation
git clone --depth=1 https://github.com/crewjam/go-cloudformation $(GOPATH)/src/github.com/crewjam/go-cloudformation
rm -rf $(GOPATH)/src/github.com/mweagle/cloudformationresources
git clone --depth=1 https://github.com/mweagle/cloudformationresources $(GOPATH)/src/github.com/mweagle/cloudformationresources
rm -rf $(GOPATH)/src/github.com/spf13/cobra
git clone --depth=1 https://github.com/spf13/cobra $(GOPATH)/src/github.com/spf13/cobra
rm -rf $(GOPATH)/src/github.com/spf13/pflag
git clone --depth=1 https://github.com/spf13/pflag $(GOPATH)/src/github.com/spf13/pflag
rm -rf $(GOPATH)/src/github.com/asaskevich/govalidator
git clone --depth=1 https://github.com/asaskevich/govalidator $(GOPATH)/src/github.com/asaskevich/govalidator
build: get generate vet
go build .
test: update
go test ./test/...
delete:
go run main.go delete
explore:
go run main.go --level debug explore
provision: generate vet
clear
go run main.go --level info provision --s3Bucket $(S3_BUCKET) --username picard --password captain
describe: generate vet
clear
S3_TEST_BUCKET="" SNS_TEST_TOPIC="" DYNAMO_TEST_STREAM="" go run main.go --level info describe --out ./graph.html
linux: generate vet
GOOS=linux GOARCH=amd64 go build -o SpartaCICD.lambda.amd64 -tags lambdabinary .
scp -i /Users/mweagle/.ssh/sparta-test.pem SpartaCICD.lambda.amd64 [email protected]:/home/ubuntu