-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
32 lines (26 loc) · 929 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
all: stop start test
make stop
deps:
go get github.com/tools/godep
go get github.com/golang/lint/golint
reflex-test: start
reflex -r '\.go' make test
test: deps start golint
godep go test -v -tags vagrant ./... -check.v
vagrant ssh host0 -c \
"mkdir -p /tmp/go/src/github.com/contiv/remotessh; \
export GOPATH=/tmp/go; \
export PATH=$$PATH:/tmp/go/bin; \
go get github.com/tools/godep; \
export GOPATH=/tmp/go; \
if [ \"${http_proxy}\" != \"\" ]; then export http_proxy=${http_proxy}; fi; \
if [ \"${https_proxy}\" != \"\" ]; then export https_proxy=${https_proxy}; fi; \
cp -Rfp /vagrant/* /tmp/go/src/github.com/contiv/remotessh/; \
cd /tmp/go/src/github.com/contiv/remotessh; \
go test -v -tags baremetal ./... -check.v"
golint: deps
test -z "$$(golint . | tee /dev/stderr)"
stop:
vagrant destroy -f
start:
vagrant up --provider virtualbox