blob: ea309639e4a27437c419cc640f1b4fb0d9875c2c [file] [log] [blame]
gunjan56e19d272016-07-07 14:23:26 -07001
2default: image
3
4ansible:
5 ansible-playbook ./setup.yml -v -vvvv -u gunjan -i ./host.yml --ask-pass
6
7get:
8 goimports -w .
9 go get -t -d -v ./...
10
11src:
12 docker run --rm -it -v "$GOPATH":/gopath -v "$(pwd)":/app -e "GOPATH=/gopath" -w /app golang:1.6.1 sh -c 'CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o app'
13
14fmt:
15 gofmt -w .
16 #TODO: go lint, go vet
17test:
18 go test -v -race ./...
19 go test -cover -v ./...
20
21image:
22 docker build -t gunjan5/configGen .
23
24run:
25 docker run --rm -it gunjan5/configGen
26
27build:
28 GOOS=linux GOARCH=amd64 go build -o app
29
30depsave:
31 godep save
32
33depupdate:
34 go get -t -v ./...
35 godep update