Add govet/golint into Travis CI build

Fix current issues
This commit is contained in:
Andrey Smirnov
2017-03-22 00:39:27 +03:00
parent 07472bec50
commit 11d828b3b1
22 changed files with 121 additions and 111 deletions
+5 -3
View File
@@ -35,8 +35,10 @@ coverage: coverage.out
rm -f coverage.out
check:
go vet -shadow=true $(ALL_PACKAGES:%=./%)
golint $(ALL_PACKAGES:%=./%)
go vet $(ALL_PACKAGES:%=./%)
for package in $(ALL_PACKAGES); do \
golint ./$$package; \
done
install:
go install -v
@@ -46,7 +48,7 @@ system-test: install
if [ ! -e ~/aptly-fixture-pool ]; then git clone https://github.com/aptly-dev/aptly-fixture-pool.git ~/aptly-fixture-pool/; fi
PATH=$(BINPATH)/:$(PATH) $(PYTHON) system/run.py --long $(TESTS)
travis: $(TRAVIS_TARGET) system-test
travis: $(TRAVIS_TARGET) check system-test
test:
go test -v `go list ./... | grep -v vendor/` -gocheck.v=true