ci: make sure folder already present before generate mock

This commit is contained in:
yunlzheng
2020-03-13 09:56:09 +08:00
parent 8281c85293
commit 1e561fdd29
+4 -1
View File
@@ -9,10 +9,13 @@ SERVER_IMAGE = kt-connect-server
# generate mock
generate-mock:
mkdir -p pkg/fake/kt
mkdir -p pkg/fake/kt/action
mockgen -source=pkg/kt/command/types.go -destination=pkg/fake/kt/action/action_mock.go -package=action
mkdir -p pkg/fake/kt/cluster
mockgen -source=pkg/kt/cluster/types.go -destination=pkg/fake/kt/cluster/kubernetes_mock.go -package=cluster
mkdir -p pkg/fake/kt/connect
mockgen -source=pkg/kt/connect/types.go -destination=pkg/fake/kt/connect/connect_mock.go -package=connect
mkdir -p pkg/fake/kt/exec
mockgen -source=pkg/kt/exec/kubectl/types.go -destination=pkg/fake/kt/exec/kubectl/kubectl_mock.go -package=kubectl
mockgen -source=pkg/kt/exec/ssh/types.go -destination=pkg/fake/kt/exec/ssh/ssh_mock.go -package=ssh
mockgen -source=pkg/kt/exec/sshuttle/types.go -destination=pkg/fake/kt/exec/sshuttle/sshuttle_mock.go -package=sshuttle