Skip to content

Commit

Permalink
Merge pull request #13 from aktsk/use-vgo-instead-of-glide
Browse files Browse the repository at this point in the history
Use vgo instead of glide
  • Loading branch information
mizzy authored Apr 11, 2018
2 parents ad36176 + 5ad0b75 commit 52bfdd5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 35 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
language: go

before_script:
- echo "machine api.github.com login mizzy password $GITHUB_ACCESS_TOKEN" > ~/.netrc

script:
- make test

go:
- "1.10.x"
- 1.10.x
- master

env:
global:
secure: ZpLtLnnbx+oDZqLbGgbQYrZtTzwFwpouwekAslh83HVoVPIaYzi9fmSIJFOxN3sMOS5zQCbq7mOlB+r8hPmjdlr8PAPeTnGlCHUUFA7BTlVT39fy5s+HsICF+gq16DM+1TWu3udGBmgt3gvWhPp/+9GJklAa5d76J8idd68brBL2fIUxvBjZ9ReqM8KOAeIE3XuzLeGNO9CWtmpDDf4o83Dsd00eavxy8gf9BR0WQxlKG5xtNxUg/sFu18An/Y/JaQYIfkGemwnerD6B/cb+mYVh/zs18kkNfEPxy8chM0/ABrz85P9OQfRp2hgkPWA0Zxf+YvKMYYhTsYSTlqBYRWam6wyZ2NdzWO+YvZ5O1eD00GhFaIjVa5Z6jJRwCIYvnSDCMAovdxWJakQpl3O5/XY2R4M3X50H3ENRvg/si2w1AqS6CAj/KOVlMFR9GX+1pCtowqo41kRT8PcdwXg6lnFXbTDjpC2rWhtFrlTVt3vJP1QQ0qGsY2kWPxksT4wd8yaNW1UBtens0iSyYbJKVlQ11zf4nol88exqnEPDovyHQx+Y0A91KvalozxCTFEYsBAC0HbZugNwZwRg8aDxsWmPSQXBc0IbCsfHPdI7bnINTSrYrLVGgqp1xgHNuoIJms6ZV/bJ2N6T63wR5Hek25adTb1lsuc7BHVk3l+6Ulo=
26 changes: 11 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,25 @@ NAME := nolmandy
all: build

setup:
go get github.com/Masterminds/glide
go get golang.org/x/vgo
go get github.com/golang/lint/golint
go get golang.org/x/tools/cmd/goimports

deps: setup
glide install

test: deps lint
go test $$(glide novendor | grep -v cmd)
go test -race $$(glide novendor | grep -v cmd)
test: lint
vgo test ./...
vgo test -race ./...

lint: setup
go vet $$(glide novendor | grep -v cmd)
for pkg in $$(glide novendor -x); do \
golint -set_exit_status $$pkg || exit $$?; \
done
vgo vet ./...
golint ./...

fmt: setup
goimports -w $$(glide nv -x)
goimports -w .

build: deps
go build -o bin/$(NAME) cmd/nolmandy/nolmandy.go
go build -o bin/$(NAME)-server cmd/nolmandy/nolmandy_server.go
build:
vgo build -o bin/$(NAME) cmd/nolmandy/nolmandy.go
vgo build -o bin/$(NAME)-server cmd/nolmandy/nolmandy_server.go

clean:
rm bin/$(NAME)

4 changes: 2 additions & 2 deletions appengine/app/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
setup:
go get github.com/Masterminds/glide
go get golang.org/x/vgo
go get github.com/golang/lint/golint
go get golang.org/x/tools/cmd/goimports

deps: setup
cd ../.. && glide install
cd ../.. && vgo vendor

deploy: deps
GOPATH=../_gopath:../_gopath/vendor gcloud app deploy
10 changes: 0 additions & 10 deletions glide.lock

This file was deleted.

7 changes: 0 additions & 7 deletions glide.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module "github.com/aktsk/nolmandy"

require (
"github.com/fullsailor/pkcs7" v0.0.0-20180223002317-1d5002593acb
"github.com/rakyll/statik" v0.1.1
)

0 comments on commit 52bfdd5

Please sign in to comment.