Skip to content

Commit

Permalink
Import
Browse files Browse the repository at this point in the history
  • Loading branch information
bpineau committed Mar 6, 2018
1 parent d7c0fe1 commit fc1930c
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.o
*.a
*.so
*.swp
*.swo
/vendor/
dist/*
cloud-floating-ip
22 changes: 22 additions & 0 deletions .goreleaser.yml
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
14 changes: 14 additions & 0 deletions .travis.yml
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

55 changes: 55 additions & 0 deletions Makefile
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
17 changes: 17 additions & 0 deletions README.md
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

0 comments on commit fc1930c

Please sign in to comment.