Skip to content

Commit 9bc6fd3

Browse files
committed
ci: replace golangci.com with reviewdog
1 parent be93db4 commit 9bc6fd3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ matrix:
1212
- go: master
1313

1414
env:
15-
- GO111MODULE=on
15+
global:
16+
- GO111MODULE=on
17+
- REVIEWDOG_REPORTER=github-check
1618

1719
before_install:
1820
# install 7zip for decompressing test demos
1921
- sudo apt-get install -y p7zip-full
22+
# install reviewdog for linting
23+
- mkdir -p ~/bin/ && export PATH="~/bin/:$PATH"
24+
- curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ~/bin
2025

2126
# Override Travis's default 'go get' step, since we use Go modules
2227
install:
@@ -31,7 +36,7 @@ before_script:
3136
- git fetch
3237

3338
# Install golangci-lint
34-
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.17.1
39+
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.24.0
3540

3641
script:
3742
# Compile

bin/lint-changes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fi
1414

1515
echo "Linting changes between/since $base_rev"
1616

17-
golangci-lint run --new-from-rev $base_rev
17+
golangci-lint run --new-from-rev $base_rev | reviewdog -f=golangci-lint -diff="git diff $base_rev" -reporter="${REVIEWDOG_REPORTER:-local}"

0 commit comments

Comments
 (0)