Skip to content

Commit

Permalink
Fix CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wojas committed Jun 10, 2020
1 parent 39c9dc5 commit 130196c
Show file tree
Hide file tree
Showing 6 changed files with 425 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# See https://github.com/golangci/golangci-lint/blob/master/.golangci.yml for more examples

linters:
enabled:
# In addition to default standard linters (see: golangci-lint help linters)
# Try extra ones line this: golangci-lint run --disable-all --enable=lll
- goimports
# For future consideration (requires some extra work, but suggestions look useful)
# - gocritic
# - golint # can sometimes be a bit pedantic
# - lll

10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
sudo: false
language: go
before_script:
- go get github.com/golangci/golangci-lint/cmd/golangci-lint
- go install github.com/golangci/golangci-lint/cmd/golangci-lint
env:
- GO111MODULE=on
go:
- 1.x # latest version
- 1.12 # lowest supported version
script:
- golangci-lint run --enable-all # this is excessive but we get away with it for now
- ./test.sh
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module github.com/PowerDNS/go-dnsdist-client

go 1.14

require golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9
require (
github.com/golangci/golangci-lint v1.27.0
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9
)
Loading

0 comments on commit 130196c

Please sign in to comment.