-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.o | ||
*.a | ||
*.so | ||
*.swp | ||
*.swo | ||
/vendor/ | ||
dist/* | ||
cloud-floating-ip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
builds: | ||
- | ||
ldflags: -s -w -X github.com/bpineau/cloud-floating-ip/cmd.version={{.Version}} | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
|
||
release: | ||
# don't autopublish | ||
draft: true | ||
|
||
dockers: | ||
- | ||
image: bpineau/cloud-floating-ip | ||
goos: linux | ||
goarch: amd64 | ||
latest: true | ||
dockerfile: Dockerfile.goreleaser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: go | ||
go: | ||
- 1.9.x | ||
|
||
install: | ||
- make tools | ||
- make deps | ||
|
||
script: | ||
- make lint | ||
- make test | ||
- make coverall | ||
- make install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
all: build | ||
|
||
tools: | ||
which gometalinter || ( go get -u github.com/alecthomas/gometalinter && gometalinter --install ) | ||
which glide || go get -u github.com/Masterminds/glide | ||
which goveralls || go get github.com/mattn/goveralls | ||
|
||
lint: | ||
gometalinter --concurrency=1 --deadline=300s --vendor --disable-all \ | ||
--enable=golint \ | ||
--enable=vet \ | ||
--enable=vetshadow \ | ||
--enable=varcheck \ | ||
--enable=errcheck \ | ||
--enable=structcheck \ | ||
--enable=deadcode \ | ||
--enable=ineffassign \ | ||
--enable=dupl \ | ||
--enable=gotype \ | ||
--enable=varcheck \ | ||
--enable=interfacer \ | ||
--enable=goconst \ | ||
--enable=megacheck \ | ||
--enable=unparam \ | ||
--enable=misspell \ | ||
--enable=gas \ | ||
--enable=goimports \ | ||
--enable=gocyclo \ | ||
./... | ||
|
||
fmt: | ||
go fmt ./... | ||
|
||
deps: | ||
glide install | ||
|
||
build: | ||
env CGO_ENABLED=0 go build -i | ||
|
||
install: | ||
env CGO_ENABLED=0 go install | ||
|
||
clean: | ||
rm -rf dist/ | ||
go clean -i | ||
|
||
coverall: | ||
goveralls -service=travis-ci -package github.com/bpineau/cloud-floating-ip/pkg/... | ||
|
||
test: | ||
go test -i github.com/bpineau/cloud-floating-ip/... | ||
go test -race -cover github.com/bpineau/cloud-floating-ip/... | ||
|
||
.PHONY: tools lint fmt install clean coverall test all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# cloud-floating-ip | ||
|
||
NOT YET READY. | ||
|
||
Implement a floating IP by modifying GCE or AWS routes. | ||
|
||
## Build | ||
|
||
Assuming you have go 1.9 and glide in the path, and GOPATH configured: | ||
|
||
```shell | ||
make deps | ||
make build | ||
``` | ||
|
||
## Usage | ||
|