Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bernos committed Sep 16, 2015
1 parent a01b1b4 commit 3a50192
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: go

go:
- tip
8 changes: 8 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Godeps/Readme

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Godeps/_workspace/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"fmt"
)

func main() {
fmt.Print("Hello World")
}

0 comments on commit 3a50192

Please sign in to comment.