-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
51 lines (40 loc) · 1.16 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
APPNAME = vasuki
VERSION = 0.1.0-dev
build-all: build-mac build-linux
build:
go build -o ${APPNAME} .
build-linux:
GOOS=linux GOARCH=amd64 go build -ldflags "-s -X main.Version=${VERSION}" -v -o ${APPNAME}-linux-amd64 .
build-mac:
GOOS=darwin GOARCH=amd64 go build -ldflags "-s -X main.Version=${VERSION}" -v -o ${APPNAME}-darwin-amd64 .
clean:
rm -f ${APPNAME}
rm -f ${APPNAME}-linux-amd64
rm -f ${APPNAME}-darwin-amd64
all:
setup
build
install
setup:
go get github.com/ashwanthkumar/go-gocd
go get github.com/spf13/cobra
go get github.com/hashicorp/go-multierror
go get github.com/deckarep/golang-set
go get github.com/fsouza/go-dockerclient
go get github.com/satori/go.uuid
go get github.com/op/go-logging
# Test deps
go get github.com/stretchr/testify
go get github.com/vektra/mockery/.../
mocks:
mockery -name=Scalar -recursive -inpkg
mockery -name=Executor -recursive -inpkg
test:
go test -v github.com/ind9/vasuki/utils/sets
go test -v github.com/ind9/vasuki/scalar
go test -v github.com/ind9/vasuki
install: build
sudo install -d /usr/local/bin
sudo install -c ${APPNAME} /usr/local/bin/${APPNAME}
uninstall:
sudo rm /usr/local/bin/${APPNAME}