Skip to content

Commit

Permalink
Get CircleCI using dep and run gometalinter on the code
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Sep 3, 2018
1 parent a8ee0c9 commit c5bd76b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.8
- image: circleci/golang:1

working_directory: /go/src/github.com/tellytv/telly
steps:
- checkout

- run: go get -v -t -d ./...
- run: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- run: go get -u github.com/alecthomas/gometalinter
- run: gometalinter --install
- run: dep ensure -vendor-only
- run: go test -v ./...
- run: GOOS=linux GOARCH=amd64 go build -o telly_linux_amd64
- run: GOOS=darwin GOARCH=amd64 go build -o telly_darwin_amd64
- run: GOOS=windows GOARCH=amd64 go build -o telly_windows_amd64.exe
- run: gometalinter --config=.gometalinter.json ./...
35 changes: 35 additions & 0 deletions .gometalinter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"Enable": [
"deadcode",

This comment has been minimized.

Copy link
@yura-hoc

yura-hoc Nov 24, 2019

QV9LGMGDA1

"errcheck",
"gochecknoglobals",
"gochecknoinits",
"goconst",
"gofmt",
"goimports",
"golint",
"gosec",
"gotype",
"gotypex",
"ineffassign",
"interfacer",
"megacheck",
"misspell",
"nakedret",
"safesql",
"structcheck",
"test",
"testify",
"unconvert",
"unparam",
"varcheck",
"vet",
"vetshadow"
],
"Deadline": "5m",
"Sort": [
"path",
"linter"
],
"Vendor": true
}

0 comments on commit c5bd76b

Please sign in to comment.