travis: split static checks and continue with tests in case one fails

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-04-17 12:23:44 +02:00 committed by mergify[bot]
parent bd6393cf76
commit 4d60e76241
2 changed files with 11 additions and 3 deletions

View File

@ -69,9 +69,11 @@ jobs:
# install helm for helm lint
- curl -L https://git.io/get_helm.sh | bash
script:
- make static-check
- make go-lint
- make go-lint-text
- make gosec
- make go-test
- make mod-check || travis_terminate 1;
- make mod-check
- name: containerized test (Fedora) and build (CentOS)
script:

View File

@ -44,7 +44,9 @@ endif
all: cephcsi
.PHONY: go-test static-check mod-check go-lint go-lint-text gosec
test: go-test static-check mod-check
static-check: go-lint go-lint-text gosec
go-test:
./scripts/test-go.sh
@ -52,9 +54,13 @@ go-test:
mod-check:
go mod verify
static-check:
go-lint:
./scripts/lint-go.sh
go-lint-text:
./scripts/lint-text.sh --require-all
gosec:
./scripts/gosec.sh
func-test: