mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Use vendored versions of gometalinter
This commit is contained in:
parent
723ad36e03
commit
d6e799feea
|
|
@ -19,7 +19,6 @@ services:
|
||||||
install:
|
install:
|
||||||
- go get github.com/constabulary/gb/...
|
- go get github.com/constabulary/gb/...
|
||||||
- go get github.com/client9/misspell/...
|
- go get github.com/client9/misspell/...
|
||||||
- go get github.com/alecthomas/gometalinter
|
|
||||||
|
|
||||||
# Generate a self-signed X.509 certificate for TLS.
|
# Generate a self-signed X.509 certificate for TLS.
|
||||||
before_script:
|
before_script:
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,14 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
export GOPATH="$(pwd):$(pwd)/vendor"
|
||||||
|
export PATH="$PATH:$(pwd)/vendor/bin:$(pwd)/bin"
|
||||||
|
|
||||||
|
echo "Installing lint search engine..."
|
||||||
|
go install github.com/alecthomas/gometalinter/
|
||||||
|
|
||||||
echo "Looking for lint..."
|
echo "Looking for lint..."
|
||||||
GOPATH="$(pwd):$(pwd)/vendor" gometalinter --config=linter.json ./...
|
gometalinter --config=linter.json ./...
|
||||||
|
|
||||||
echo "Double checking spelling..."
|
echo "Double checking spelling..."
|
||||||
misspell -error src *.md
|
misspell -error src *.md
|
||||||
|
|
@ -16,6 +22,6 @@ gb test
|
||||||
# checks that everything builds. This seems to do a better job of handling
|
# checks that everything builds. This seems to do a better job of handling
|
||||||
# missing imports than `gb build` does.
|
# missing imports than `gb build` does.
|
||||||
echo "Double checking it builds..."
|
echo "Double checking it builds..."
|
||||||
GOPATH=$(pwd):$(pwd)/vendor go build github.com/matrix-org/dendrite/cmd/...
|
go build github.com/matrix-org/dendrite/cmd/...
|
||||||
|
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue