-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
72 lines (58 loc) · 1.83 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
69
70
71
72
# Just builds
.PHONY: all
dep-twitter-daemon:
cd serverless/twitter-daemon; \
dep ensure
dep-twitter-daemon-up:
cd serverless/twitter-daemon; \
dep ensure -update
build-twitter-daemon:
cd serverless/twitter-daemon; \
go build -race; \
rm -fr twitter-daemon
build-twitter-daemon-mipsle:
cd serverless/twitter-daemon; \
GOOS=linux GOARCH=mipsle go build -ldflags "-s -w" -compiler gc; \
rm -fr twitter-daemon
build-emotion-recorder:
cd serverless/emotion-recognition/emotion-results; \
go build -race; \
rm -fr emotion-recorder
dep-emotion-recorder:
cd serverless/emotion-recognition/emotion-results; \
dep ensure
dep-emotion-recorder-up:
cd serverless/emotion-recognition/emotion-results; \
dep ensure -update
ci-build-twitter-daemon:
cd serverless/twitter-daemon; \
${GOPATH}/bin/dep ensure; \
go build -race; \
rm -fr twitter-daemon
ci-build-twitter-daemon-mipsle:
cd serverless/twitter-daemon; \
${GOPATH}/bin/dep ensure; \
GOOS=linux GOARCH=mipsle go build -ldflags "-s -w" -compiler gc; \
rm -fr twitter-daemon
ci-build-tweet-fail:
cd serverless/landmark-recognition/tweet-fail; \
${GOPATH}/bin/dep ensure; \
go build -race; \
rm -fr tweet-fail; \
docker build -t denismakogon/tweet-fail:latest .; \
docker rmi denismakogon/tweet-fail:latest
ci-build-tweet-success:
cd serverless/landmark-recognition/tweet-success; \
${GOPATH}/bin/dep ensure; \
go build -race; \
rm -fr tweet-success; \
docker build -t denismakogon/tweet-success:latest .; \
docker rmi denismakogon/tweet-success:latest
ci-build-emotion-recorder:
cd serverless/emotion-recognition/emotion-recorder; \
${GOPATH}/bin/dep ensure; \
go build; \
rm -fr emotion-recorder; \
docker build -t denismakogon/emotion-recorder:latest .; \
docker rmi denismakogon/emotion-recorder:latest
all: dep-twitter-daemon dep-twitter-daemon-up build-twitter-daemon