mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
Add dep check to the Makefile
check vendor directory is out of sync with Gopkh .lock and .toml file Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
bd204d7d45
commit
21a02fb559
@ -43,9 +43,9 @@ jobs:
|
|||||||
"https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh"
|
"https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh"
|
||||||
| bash -s -- -b $GOPATH/bin "${GOLANGCI_VERSION}"
|
| bash -s -- -b $GOPATH/bin "${GOLANGCI_VERSION}"
|
||||||
script:
|
script:
|
||||||
- scripts/lint-text.sh --require-all
|
- make static-check
|
||||||
- scripts/lint-go.sh
|
- make go-test
|
||||||
- scripts/test-go.sh
|
- make dep-check || travis_terminate 1;
|
||||||
|
|
||||||
- name: cephcsi with kube 1.13.7
|
- name: cephcsi with kube 1.13.7
|
||||||
script:
|
script:
|
||||||
|
7
Makefile
7
Makefile
@ -33,14 +33,17 @@ LDFLAGS += -X $(GO_PROJECT)/pkg/util.DriverVersion=$(CSI_IMAGE_VERSION)
|
|||||||
|
|
||||||
all: cephcsi
|
all: cephcsi
|
||||||
|
|
||||||
test: go-test static-check
|
test: go-test static-check dep-check
|
||||||
|
|
||||||
go-test:
|
go-test:
|
||||||
./scripts/test-go.sh
|
./scripts/test-go.sh
|
||||||
|
|
||||||
|
dep-check:
|
||||||
|
dep check
|
||||||
|
|
||||||
static-check:
|
static-check:
|
||||||
./scripts/lint-go.sh
|
./scripts/lint-go.sh
|
||||||
./scripts/lint-text.sh
|
./scripts/lint-text.sh --require-all
|
||||||
|
|
||||||
func-test:
|
func-test:
|
||||||
go test github.com/ceph/ceph-csi/e2e $(TESTOPTIONS)
|
go test github.com/ceph/ceph-csi/e2e $(TESTOPTIONS)
|
||||||
|
Loading…
Reference in New Issue
Block a user