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


+ 1
- 1
circle.yml View File

@ -15,7 +15,7 @@ checkout:
test: test:
override: 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: post:
- cd "$REPO" && bash <(curl -s https://codecov.io/bash) -f coverage.txt - cd "$REPO" && bash <(curl -s https://codecov.io/bash) -f coverage.txt
- cd "$REPO" && mv coverage.txt "${CIRCLE_ARTIFACTS}" - cd "$REPO" && mv coverage.txt "${CIRCLE_ARTIFACTS}"

Loading…
Cancel
Save