Browse Source

Update Circle and Makefile to run tests/linting on CI

pull/1780/head
Adrian Brink 7 years ago
parent
commit
c268c4e767
No known key found for this signature in database GPG Key ID: 9168AC350E33CEF2
2 changed files with 11 additions and 11 deletions
  1. +10
    -10
      Makefile
  2. +1
    -1
      circle.yml

+ 10
- 10
Makefile View File

@ -74,23 +74,23 @@ metalinter_all:
protoc $(INCLUDE) --lint_out=. types/*.proto
gometalinter.v2 --vendor --deadline=600s --enable-all --disable=lll ./...
metalinter:
@ echo "==> Running linter"
metalinter_test:
@ echo "==> Running linter"
gometalinter.v2 --vendor --deadline=600s --disable-all \
--enable=maligned \
--enable=deadcode \
--enable=goconst \
--enable=goimports \
--enable=gosimple \
--enable=ineffassign \
--enable=ineffassign \
--enable=megacheck \
--enable=misspell \
--enable=staticcheck \
--enable=misspell \
--enable=staticcheck \
--enable=safesql \
--enable=structcheck \
--enable=unconvert \
--enable=structcheck \
--enable=unconvert \
--enable=unused \
--enable=varcheck \
--enable=varcheck \
--enable=vetshadow \
./...
@ -100,8 +100,8 @@ metalinter:
#--enable=gocyclo \
#--enable=golint \ <== comments on anything exported
#--enable=gotype \
#--enable=interfacer \
#--enable=unparam \
#--enable=interfacer \
#--enable=unparam \
#--enable=vet \
build-docker:


+ 1
- 1
circle.yml View File

@ -15,7 +15,7 @@ checkout:
test:
override:
- cd $REPO && make get_vendor_deps && make metalinter_test && make test_integrations
- cd $REPO && make get_vendor_deps && make metalinter && make test_integrations
post:
- cd "$REPO" && bash <(curl -s https://codecov.io/bash) -f coverage.txt
- cd "$REPO" && mv coverage.txt "${CIRCLE_ARTIFACTS}"

Loading…
Cancel
Save