Skip to content

Commit

Permalink
updated deps, release tool, and package doc
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Oct 7, 2018
1 parent 4571df4 commit ed7547d
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 9 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: 19 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,25 @@ language: go

sudo: false

go:
- 1.8
- 1.9
- "1.10"
- tip

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'
- go: "tip"

install: make deps

script:
- go test -race -v ./...
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
3 changes: 3 additions & 0 deletions flect.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
Package flect is a new inflection engine to replace [https://github.com/markbates/inflect](https://github.com/markbates/inflect) designed to be more modular, more readable, and easier to fix issues on than the original.
*/
package flect

import (
Expand Down
3 changes: 3 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package flect

const Version = "v0.0.1"

0 comments on commit ed7547d

Please sign in to comment.