Skip to content
Snippets Groups Projects
Commit 1925b06c authored by Will McCutchen's avatar Will McCutchen
Browse files

Move main package into cmd subdir

parent 9e4e1b6a
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
language: go language: go
go: go:
- 1.7 - 1.7
- 1.8
- tip - tip
script: make test script: make test
notifications: notifications:
......
build: dist/go-httpbin build: dist/go-httpbin
dist/go-httpbin: assets *.go httpbin/*.go dist/go-httpbin: assets cmd/go-httpbin/*.go httpbin/*.go
mkdir -p dist mkdir -p dist
go build -o dist/go-httpbin go build -o dist/go-httpbin ./cmd/go-httpbin
assets: httpbin/assets/* assets: httpbin/assets/*
go-bindata -o httpbin/assets.go -pkg=httpbin -prefix=httpbin/assets httpbin/assets go-bindata -o httpbin/assets.go -pkg=httpbin -prefix=httpbin/assets httpbin/assets
...@@ -18,11 +18,6 @@ testcover: assets ...@@ -18,11 +18,6 @@ testcover: assets
run: build run: build
./dist/go-httpbin ./dist/go-httpbin
watch:
# brew install entr
# https://bitbucket.org/eradman/entr/
ls */*.go | entr -r -s "go build -o dist/go-httpbin && dist/go-httpbin"
clean: clean:
rm -r dist rm -r dist
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment