Skip to content

Commit

Permalink
Merge pull request #10 from insidieux/use-offiical-mockery-image
Browse files Browse the repository at this point in the history
Use official image vektra/mockery with support golang 1.16
  • Loading branch information
insidieux authored Mar 18, 2021
2 parents 03720cb + 4416137 commit a3dc4b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
override APP_NAME=inizio
override GO_VERSION=1.16
override PROTOC_VERSION=3.1.32
override MOCKERY_VERSION=v2.5.1
override MOCKERY_VERSION=v2.7.1
override GOLANGCI_LINT_VERSION=v1.38.0
override SECUREGO_GOSEC_VERSION=v2.7.0
override HADOLINT_VERSION=v1.23.0
Expand Down Expand Up @@ -155,17 +155,11 @@ ifndef MOCKERY_INTERFACE
$(error MOCKERY_INTERFACE is not set)
endif
@find ${PWD} -type f -name "mock_*_test.go" -delete
@docker build \
--build-arg GO_VERSION=${GO_VERSION} \
--build-arg MOCKERY_VERSION=${MOCKERY_VERSION} \
-f ${PWD}/build/docker/utils/mockery/Dockerfile \
-t mockery:${MOCKERY_VERSION} \
build/docker/utils/mockery
@docker run \
--rm \
-v ${PWD}:/project \
-w /project \
mockery:${MOCKERY_VERSION} \
vektra/mockery:${MOCKERY_VERSION} \
--testonly \
--inpackage \
--case snake \
Expand Down
10 changes: 0 additions & 10 deletions build/docker/utils/mockery/Dockerfile

This file was deleted.

0 comments on commit a3dc4b2

Please sign in to comment.