Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
update to use the new release tool (#1291)
Browse files Browse the repository at this point in the history
* version bump: v0.13.0-beta.0

* version bump: v0.13.0-beta.0

* update to use the new release tool

* added back the homebrew stuff
  • Loading branch information
markbates authored Sep 14, 2018
1 parent d02636d commit 7a19c8a
Show file tree
Hide file tree
Showing 13 changed files with 84 additions and 386 deletions.
79 changes: 24 additions & 55 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
project_name: buffalo
release:
github:
owner: gobuffalo
name: buffalo
name_template: '{{.Tag}}'
builds:
-
goos:
- darwin
- linux
- windows
env:
- CGO_ENABLED=0
main: ./buffalo/main.go
binary: buffalo-no-sqlite
# hooks:
# pre: packr
# post: packr clean

checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brew:
name: buffalo
github:
Expand All @@ -16,52 +34,3 @@ brew:
mv "#{bin}/buffalo-no-sqlite", "#{bin}/buffalo"
test: |
system "#{bin}/buffalo", "version"
builds:
-
goos:
- linux
- darwin
- windows
goarch:
- amd64
goarm:
- "6"
main: ./buffalo/main.go
binary: buffalo-no-sqlite
hooks:
pre: packr
post: packr clean
archive:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
format: tar.gz
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
fpm:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
bindir: /usr/local/bin
snapcraft:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}'
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
dist: dist
sign:
cmd: gpg
args:
- --output
- $signature
- --detach-sig
- $artifact
signature: ${artifact}.sig
artifacts: none
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ RUN mkdir -p $BP
WORKDIR $BP
ADD . .

RUN go get -u github.com/gobuffalo/buffalo-pop/...
RUN go get github.com/gobuffalo/buffalo-pop
RUN make install

RUN cat runtime/version.go
RUN go get -u github.com/alecthomas/gometalinter
RUN gometalinter --install
RUN gometalinter --vendor --deadline=5m ./... --skip=internal

RUN go test -tags "sqlite integration_test" -race ./...
RUN go test -tags "sqlite integration_test" -coverprofile cover.out -covermode count ./...

Expand All @@ -34,10 +39,6 @@ RUN if [ -z "$CODECOV_TOKEN" ] ; then \
else curl -s https://codecov.io/bash -o codecov && \
bash codecov -f cover.out -X fix; fi

RUN go get -u github.com/alecthomas/gometalinter
RUN gometalinter --install
RUN gometalinter --vendor --deadline=5m ./... --skip=internal

WORKDIR $GOPATH/src/

# START: tests bins are built with tags properly
Expand Down
31 changes: 17 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
TAGS ?= "sqlite"
INSTALL ?= install -v -tags ${TAGS} ./...

GO_BIN ?= go
GO_GET ?= $(GO_BIN) get -tags "sqlite" -v -t github.com/gobuffalo/buffalo/...

install: deps
packr
$(GO_GET)
$(GO_BIN) $(INSTALL)
packr clean

ifeq ("$(GO_BIN)","vgo")
GO_GET = vgo version
endif
$(GO_BIN) install -v .

deps:
$(GO_BIN) install -v github.com/gobuffalo/packr/packr
$(GO_BIN) get github.com/gobuffalo/packr/packr
$(GO_BIN) get -tags ${TAGS} -t ./...

build: deps
packr
$(GO_BIN) build -v .

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

ci-test:
$(GO_BIN) test -tags ${TAGS} -race -v ./...
docker build .
ci-test: deps
docker build . --no-cache

lint:
gometalinter --vendor ./... --deadline=1m --skip=internal
Expand All @@ -32,3 +28,10 @@ update:
$(GO_BIN) mod tidy
packr
make test

release-test:
make ci-test

release:
$(GO_BIN) get github.com/gobuffalo/release
release -y -f runtime/version.go
22 changes: 10 additions & 12 deletions SHOULDERS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# `github.com/gobuffalo/buffalo` Stands on the Shoulders of Giants
# github.com/gobuffalo/buffalo Stands on the Shoulders of Giants

`github.com/gobuffalo/buffalo` does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants this project would not be possible. Please make sure to check them out and thank them for all of their hard work.
github.com/gobuffalo/buffalo does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants this project would not be possible. Please make sure to check them out and thank them for all of their hard work.

Thank you to the following **GIANTS**:


* [C](https://godoc.org/C)

* [github.com/BurntSushi/toml](https://godoc.org/github.com/BurntSushi/toml)

* [github.com/ajg/form](https://godoc.org/github.com/ajg/form)
Expand All @@ -21,10 +19,6 @@ Thank you to the following **GIANTS**:

* [github.com/fatih/color](https://godoc.org/github.com/fatih/color)

* [github.com/fatih/color/vendor/github.com/mattn/go-colorable](https://godoc.org/github.com/fatih/color/vendor/github.com/mattn/go-colorable)

* [github.com/fatih/color/vendor/github.com/mattn/go-isatty](https://godoc.org/github.com/fatih/color/vendor/github.com/mattn/go-isatty)

* [github.com/fatih/structs](https://godoc.org/github.com/fatih/structs)

* [github.com/fsnotify/fsnotify](https://godoc.org/github.com/fsnotify/fsnotify)
Expand Down Expand Up @@ -73,16 +67,14 @@ Thank you to the following **GIANTS**:

* [github.com/gobuffalo/pop/fix](https://godoc.org/github.com/gobuffalo/pop/fix)

* [github.com/gobuffalo/pop/logging](https://godoc.org/github.com/gobuffalo/pop/logging)

* [github.com/gobuffalo/pop/nulls](https://godoc.org/github.com/gobuffalo/pop/nulls)

* [github.com/gobuffalo/pop/slices](https://godoc.org/github.com/gobuffalo/pop/slices)

* [github.com/gobuffalo/pop/soda/cmd](https://godoc.org/github.com/gobuffalo/pop/soda/cmd)

* [github.com/gobuffalo/pop/soda/cmd/generate](https://godoc.org/github.com/gobuffalo/pop/soda/cmd/generate)

* [github.com/gobuffalo/pop/soda/cmd/schema](https://godoc.org/github.com/gobuffalo/pop/soda/cmd/schema)

* [github.com/gobuffalo/tags](https://godoc.org/github.com/gobuffalo/tags)

* [github.com/gobuffalo/tags/form](https://godoc.org/github.com/gobuffalo/tags/form)
Expand Down Expand Up @@ -183,6 +175,10 @@ Thank you to the following **GIANTS**:

* [github.com/markbates/willie](https://godoc.org/github.com/markbates/willie)

* [github.com/mattn/go-colorable](https://godoc.org/github.com/mattn/go-colorable)

* [github.com/mattn/go-isatty](https://godoc.org/github.com/mattn/go-isatty)

* [github.com/mattn/go-sqlite3](https://godoc.org/github.com/mattn/go-sqlite3)

* [github.com/microcosm-cc/bluemonday](https://godoc.org/github.com/microcosm-cc/bluemonday)
Expand Down Expand Up @@ -375,6 +371,8 @@ Thank you to the following **GIANTS**:

* [golang.org/x/text/unicode/rangetable](https://godoc.org/golang.org/x/text/unicode/rangetable)

* [golang.org/x/tools/go/ast/astutil](https://godoc.org/golang.org/x/tools/go/ast/astutil)

* [gopkg.in/check.v1](https://godoc.org/gopkg.in/check.v1)

* [gopkg.in/russross/blackfriday.v1](https://godoc.org/gopkg.in/russross/blackfriday.v1)
Expand Down
1 change: 1 addition & 0 deletions generators/assets/standard/a_standard-packr.go

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

3 changes: 2 additions & 1 deletion generators/assets/webpack/a_webpack-packr.go

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

Loading

0 comments on commit 7a19c8a

Please sign in to comment.