-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (37 loc) · 843 Bytes
/
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
.DEFAULT_GOAL := build
IMAGE_NAME := jaredreisinger/xyzzybot
IMAGE_VERSION := 0.2
build:
go build -v .
.PHONY: build
install: build
go install -v .
.PHONY: install
image:
docker build \
-t ${IMAGE_NAME}:${IMAGE_VERSION} \
-t ${IMAGE_NAME}:latest \
.
.PHONY: image
acquire-external-tools:
go get -u github.com/kardianos/govendor
.PHONY: acquire-external-tools
update-dependencies:
govendor fetch +outside
.PHONY: update-dependencies
try: build
./xyzzybot -config ./config/development.json -console
.PHONY: try
try-slack: build
./xyzzybot -config ./config/development.json
.PHONY: try-slack
shell:
docker run --rm \
--tty \
--interactive \
--volume ${PWD}/config:/usr/local/etc/xyzzybot \
--volume ${PWD}/sample-games:/usr/local/games \
${IMAGE_NAME}:${IMAGE_VERSION}
# lint:
# go lint -v ./...
# .PHONY: lint