diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b68d9f4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: go + +go: + - tip \ No newline at end of file diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json new file mode 100644 index 0000000..ab331b4 --- /dev/null +++ b/Godeps/Godeps.json @@ -0,0 +1,8 @@ +{ + "ImportPath": "github.com/bernos/go-bootstrap", + "GoVersion": "go1.4.2", + "Packages": [ + "./..." + ], + "Deps": [] +} diff --git a/Godeps/Readme b/Godeps/Readme new file mode 100644 index 0000000..4cdaa53 --- /dev/null +++ b/Godeps/Readme @@ -0,0 +1,5 @@ +This directory tree is generated automatically by godep. + +Please do not edit. + +See https://github.com/tools/godep for more information. diff --git a/Godeps/_workspace/.gitignore b/Godeps/_workspace/.gitignore new file mode 100644 index 0000000..f037d68 --- /dev/null +++ b/Godeps/_workspace/.gitignore @@ -0,0 +1,2 @@ +/pkg +/bin diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..62a9a89 --- /dev/null +++ b/Makefile @@ -0,0 +1,38 @@ +# Name of the binary to produce +NAME=changeme + +# Output dir +OUTPUT_DIR=./dist + +# Path to build artifact +OUTPUT=$(OUTPUT_DIR)/$(NAME) + +ifeq ($(OS),Windows_NT) + # Force cmd.exe as shell on windows to relieve + # Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3) + # See http://superuser.com/questions/375029/make-interrupt-exception-caught + SHELL=C:/Windows/System32/cmd.exe + OUTPUT=$(OUTPUT_DIR)/$(NAME).exe +endif + +all: compile + +clean: + go clean -i -x ./... + -rm -rf $(OUTPUT_DIR) + +deps: + go get -v github.com/tools/godep && \ + $(GOPATH)/bin/godep save ./... + $(GOPATH)/bin/godep restore ./... + +test: deps + $(GOPATH)/bin/godep go test -v ./... + +compile: test + $(GOPATH)/bin/godep go build -o $(OUTPUT) + +run: all + $(OUTPUT) + +.PHONY: all clean deps test compile run diff --git a/README.md b/README.md index f6702c5..8495424 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # go-bootstrap Bootstrap for golang projects +[![Build Status](https://travis-ci.org/bernos/go-bootstrap.svg)](https://travis-ci.org/bernos/go-bootstrap) diff --git a/main.go b/main.go new file mode 100644 index 0000000..a6a58ba --- /dev/null +++ b/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "fmt" +) + +func main() { + fmt.Print("Hello World") +}