-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
50 lines (35 loc) · 1.02 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
BIN_DIR := "bin/trilug"
all: ensure package
.PHONY: generate-coverage
ensure:
dep ensure
package: compile
compile: main.go
CGO_ENABLED=0 go build -i -o ${BIN_DIR} main.go
dev-deps:
docker-compose pull
build-dev:
docker-compose build
dev:
docker-compose up frontend backend db redis
destroy-dev:
docker-compose down
show-containers:
docker-compose ps
test:
go test ./... -v
travis-before-build: travis-before-build-step
travis-before-build-step:
export PATH=${PATH}:${HOME}/gopath/bin
go get -u golang.org/x/tools/cmd/cover
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/sozorogami/gover
go get -u github.com/mattn/goveralls
travis-build-step:
dep ensure
travis-script-step:
set -e
CGO_ENABLED=0 go build -i -o ${BIN_DIR} *.go
go test ./...
gover
goveralls -coverprofile=gover.coverprofile -service drone.io -repotoken ${COVERALLS_TOKEN}