-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 775 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 775 Bytes
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
.PHONY: all
all: test
BIN_DIR := $(GOPATH)/bin
GOMETALINTER := $(BIN_DIR)/gometalinter
$(GOMETALINTER):
go get -u github.com/alecthomas/gometalinter
gometalinter --install
.PHONY: deps
deps: $(GOMETALINTER)
.PHONY: lint
lint: deps
gometalinter --deadline=120s --vendor
.PHONY: test
test:
go test
BINARY := tsheet-processor
VERSION ?= vlatest
.PHONY: release
release:
mkdir -p release
go build -o release/$(BINARY)-$(VERSION)
.PHONY: startlocal
startlocal:
docker run -d --rm --name tsheetsdevmariadb -p 3306:3306 -eMARIADB_ROOT_PASSWORD=Password1 -eMARIADB_DATABASE=tsheetsdev -eMARIADB_USER=tsheetsuser -eMARIADB_PASSWORD=changeme -v $(PWD)/install:/docker-entrypoint-initdb.d mariadb/server:10.3
.PHONY: stoplocal
stoplocal:
docker stop tsheetsdevmariadb