blob: ea309639e4a27437c419cc640f1b4fb0d9875c2c [file] [log] [blame]
default: image
ansible:
ansible-playbook ./setup.yml -v -vvvv -u gunjan -i ./host.yml --ask-pass
get:
goimports -w .
go get -t -d -v ./...
src:
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'
fmt:
gofmt -w .
#TODO: go lint, go vet
test:
go test -v -race ./...
go test -cover -v ./...
image:
docker build -t gunjan5/configGen .
run:
docker run --rm -it gunjan5/configGen
build:
GOOS=linux GOARCH=amd64 go build -o app
depsave:
godep save
depupdate:
go get -t -v ./...
godep update