Skip to content

Commit

Permalink
set up to use gobuffalo/release
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Oct 2, 2018
1 parent 778caa6 commit 1f5da74
Show file tree
Hide file tree
Showing 54 changed files with 431 additions and 8,341 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ generated/
.vendor/
bin/*
gin-bin
.idea/
3 changes: 3 additions & 0 deletions .gometalinter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Enable": ["vet", "golint", "goimports", "deadcode", "gotype", "ineffassign", "misspell", "nakedret", "unconvert", "megacheck", "varcheck"]
}
28 changes: 28 additions & 0 deletions .goreleaser.yml.plush
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
builds:
-
goos:
- darwin
- linux
- windows
env:
- CGO_ENABLED=0
# main: ./main.go

checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
<%= if (brew) { %>
brew:
github:
owner: markbates
name: homebrew-tap
<% } %>
30 changes: 25 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
sudo: required
language: go

services:
- docker
script:
- docker build .
sudo: false

matrix:
include:
- go: "1.9.x"
- go: "1.10.x"
- go: "1.11.x"
env:
- GO111MODULE=off
- go: "1.11.x"
env:
- GO111MODULE=on
- go: "tip"
env:
- GO111MODULE=off
- go: "tip"
env:
- GO111MODULE=on
allow_failures:
- go: "tip"

install: make deps

script: make ci-test
46 changes: 46 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
TAGS ?= "sqlite"
GO_BIN ?= go

install:
packr
$(GO_BIN) install -v ./.

deps:
$(GO_BIN) get github.com/gobuffalo/release
$(GO_BIN) get github.com/gobuffalo/packr/packr
$(GO_BIN) get -tags ${TAGS} -t ./...
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
endif

build:
packr
$(GO_BIN) build -v .

test:
packr
$(GO_BIN) test -tags ${TAGS} ./...

ci-test:
$(GO_BIN) test -tags ${TAGS} -race ./...

lint:
gometalinter --vendor ./... --deadline=1m --skip=internal

update:
$(GO_BIN) get -u -tags ${TAGS}
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
endif
packr
make test
make install
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
endif

release-test:
$(GO_BIN) test -tags ${TAGS} -race ./...

release:
release -y -f version.go
22 changes: 22 additions & 0 deletions genny/auth/a_auth-packr.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion genny/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func New(args []string) (*genny.Generator, error) {
return g, errors.WithStack(err)
}

if err := g.Box(packr.NewBox(filepath.Join("..", "auth", "templates"))); err != nil {
if err := g.Box(packr.NewBox("../auth/templates")); err != nil {
return g, errors.WithStack(err)
}

Expand Down
12 changes: 4 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
module github.com/gobuffalo/buffalo-auth

require (
github.com/gobuffalo/buffalo v0.12.6
github.com/gobuffalo/buffalo-plugins v0.0.0-20180924041210-6ea00eeaef92
github.com/gobuffalo/genny v0.0.0-20180928214617-9033ae798a5a
github.com/gobuffalo/buffalo v0.13.0-rc.1.0.20181001193643-c5177460e647
github.com/gobuffalo/buffalo-plugins v0.0.0-20180928194818-6ca7684eb375
github.com/gobuffalo/genny v0.0.0-20181002164640-2ee494b3a911
github.com/gobuffalo/packr v1.13.7
github.com/gobuffalo/plush v3.7.16+incompatible
github.com/pkg/errors v0.8.0
github.com/sirupsen/logrus v1.1.0
github.com/spf13/cobra v0.0.3
github.com/stretchr/testify v1.2.2
golang.org/x/crypto v0.0.0-20180927165925-5295e8364332 // indirect
golang.org/x/sys v0.0.0-20180928133829-e4b3c5e90611 // indirect
golang.org/x/tools v0.0.0-20180928181343-b3c0be4c978b // indirect
golang.org/x/tools v0.0.0-20181002045332-008d18139cb7 // indirect
)
92 changes: 83 additions & 9 deletions go.sum

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions vendor/github.com/davecgh/go-spew/LICENSE

This file was deleted.

145 changes: 0 additions & 145 deletions vendor/github.com/davecgh/go-spew/spew/bypass.go

This file was deleted.

38 changes: 0 additions & 38 deletions vendor/github.com/davecgh/go-spew/spew/bypasssafe.go

This file was deleted.

Loading

0 comments on commit 1f5da74

Please sign in to comment.