mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +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
|
# install helm for helm lint
|
||||||
- curl -L https://git.io/get_helm.sh | bash
|
- curl -L https://git.io/get_helm.sh | bash
|
||||||
script:
|
script:
|
||||||
- make static-check
|
- make go-lint
|
||||||
|
- make go-lint-text
|
||||||
|
- make gosec
|
||||||
- make go-test
|
- make go-test
|
||||||
- make mod-check || travis_terminate 1;
|
- make mod-check
|
||||||
|
|
||||||
- name: containerized test (Fedora) and build (CentOS)
|
- name: containerized test (Fedora) and build (CentOS)
|
||||||
script:
|
script:
|
||||||
|
8
Makefile
8
Makefile
@ -44,7 +44,9 @@ endif
|
|||||||
|
|
||||||
all: cephcsi
|
all: cephcsi
|
||||||
|
|
||||||
|
.PHONY: go-test static-check mod-check go-lint go-lint-text gosec
|
||||||
test: go-test static-check mod-check
|
test: go-test static-check mod-check
|
||||||
|
static-check: go-lint go-lint-text gosec
|
||||||
|
|
||||||
go-test:
|
go-test:
|
||||||
./scripts/test-go.sh
|
./scripts/test-go.sh
|
||||||
@ -52,9 +54,13 @@ go-test:
|
|||||||
mod-check:
|
mod-check:
|
||||||
go mod verify
|
go mod verify
|
||||||
|
|
||||||
static-check:
|
go-lint:
|
||||||
./scripts/lint-go.sh
|
./scripts/lint-go.sh
|
||||||
|
|
||||||
|
go-lint-text:
|
||||||
./scripts/lint-text.sh --require-all
|
./scripts/lint-text.sh --require-all
|
||||||
|
|
||||||
|
gosec:
|
||||||
./scripts/gosec.sh
|
./scripts/gosec.sh
|
||||||
|
|
||||||
func-test:
|
func-test:
|
||||||
|
Loading…
Reference in New Issue
Block a user