mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 11:50:18 +00:00
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:
parent
bd6393cf76
commit
4d60e76241
@ -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:
|
||||
|
8
Makefile
8
Makefile
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user