Skip to content

Commit

Permalink
ci+mod+vendor+tool: move to Go 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
wstrm committed Oct 27, 2018
1 parent 08a6bf9 commit f23d71a
Show file tree
Hide file tree
Showing 345 changed files with 44 additions and 72,203 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
language: go

go:
- "1.11.x"
- tip

env:
- GO111MODULE=on

install:
- go get -u golang.org/x/lint/golint

Expand Down
36 changes: 0 additions & 36 deletions Gopkg.lock

This file was deleted.

32 changes: 0 additions & 32 deletions Gopkg.toml

This file was deleted.

11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module github.com/willeponken/elvisp

require (
github.com/boltdb/bolt v0.0.0-20160616193316-3f7947a25d97
github.com/ehmry/go-bencode v1.1.1 // indirect
github.com/willeponken/go-cjdns v0.0.0-20160701150232-b68d38c777e9
golang.org/x/crypto v0.0.0-20160624093139-811831de4c4d
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 // indirect
golang.org/x/sys v0.0.0-20160615012701-62bee0375999 // indirect
golang.org/x/tools v0.0.0-20181026183834-f60e5f99f081 // indirect
)
14 changes: 14 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
github.com/boltdb/bolt v0.0.0-20160616193316-3f7947a25d97 h1:XLu0ALSef3rWzj1+jMH8iGjOCWbASrmkVKpXtrmO0Ss=
github.com/boltdb/bolt v0.0.0-20160616193316-3f7947a25d97/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
github.com/ehmry/go-bencode v1.1.1 h1:zNNk7c0Kf2+wlufU8dawnHZU9UI1gGOnlzN/OL6Q7ig=
github.com/ehmry/go-bencode v1.1.1/go.mod h1:mEASVRitneq5xbjNQHu5DWBVFyeNTFHdNnHpgtPysWk=
github.com/willeponken/go-cjdns v0.0.0-20160701150232-b68d38c777e9 h1:/QXZtliPM8TwHEHL+o68yeVpi7sYtXfYqj9rABSE/JA=
github.com/willeponken/go-cjdns v0.0.0-20160701150232-b68d38c777e9/go.mod h1:YjdvFdnH3BE0If32reukpe/n7qX7wIyMqtuJsQc+H+s=
golang.org/x/crypto v0.0.0-20160624093139-811831de4c4d h1:VuwUNDWHbiJBfKXj56WkSp9RZH87xyhwcGu9gRZsNj4=
golang.org/x/crypto v0.0.0-20160624093139-811831de4c4d/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 h1:x/bBzNauLQAlE3fLku/xy92Y8QwKX5HZymrMz2IiKFc=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/sys v0.0.0-20160615012701-62bee0375999 h1:mMwksw9evYb/M6VJQLeswaoE9yJ4X/Rg8YPFwo8nDfk=
golang.org/x/sys v0.0.0-20160615012701-62bee0375999/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/tools v0.0.0-20181026183834-f60e5f99f081 h1:QJP9sxq2/KbTxFnGduVryxJOt6r/UVGyom3tLaqu7tc=
golang.org/x/tools v0.0.0-20181026183834-f60e5f99f081/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
4 changes: 2 additions & 2 deletions tool/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ go_vet() {
}

go_lint() {
golint -min_confidence 0.0 $(local_dependencies /...)
go run golang.org/x/lint/golint -min_confidence 0.0 $(local_dependencies /...)
}

go_test() {
touch coverage.tmp
echo 'mode: atomic' > coverage.txt && local_dependencies | xargs -n1 -I{} sh -c 'echo "> {}"; go test -tags test -race -covermode=atomic -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.txt'
echo 'mode: atomic' > coverage.txt && local_dependencies | xargs -n1 -I{} sh -c 'echo "> {}"; go test -mod=vendor -tags test -race -covermode=atomic -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.txt'
rm coverage.tmp 2>/dev/null
}

Expand Down
Loading

0 comments on commit f23d71a

Please sign in to comment.