summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Kraft <martinkraft@gmail.com>2018-05-16 14:45:46 -0400
committerMartin Kraft <martinkraft@gmail.com>2018-05-16 14:45:46 -0400
commitf1a830ce9aea87fbeab7e54a6b2b56423e5fed45 (patch)
tree613bb2cb29cca3016d6b6ac75602aad26303f4f7 /Makefile
parent16bbbc2abca7c2e5dc2e6876da0dba2bae9eed04 (diff)
parent02f8c18f40cd0e973e4c75b751e8fcbbbd019728 (diff)
downloadchat-f1a830ce9aea87fbeab7e54a6b2b56423e5fed45.tar.gz
chat-f1a830ce9aea87fbeab7e54a6b2b56423e5fed45.tar.bz2
chat-f1a830ce9aea87fbeab7e54a6b2b56423e5fed45.zip
Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 187b8f769..b21f3d785 100644
--- a/Makefile
+++ b/Makefile
@@ -277,7 +277,14 @@ store-mocks: ## Creates mock files.
ldap-mocks: ## Creates mock files for ldap.
go get github.com/vektra/mockery/...
- GOPATH=$(shell go env GOPATH) $(shell go env GOPATH)/bin/mockery -dir enterprise/ldap -all -output enterprise/ldap/mocks -note 'Regenerate this file using `make ldap-mocks`.'
+ $(GOPATH)/bin/mockery -dir enterprise/ldap -all -output enterprise/ldap/mocks -note 'Regenerate this file using `make ldap-mocks`.'
+
+plugin-mocks: ## Creates mock files for plugins.
+ go get github.com/vektra/mockery/...
+ $(GOPATH)/bin/mockery -dir plugin -name API -output plugin/plugintest -outpkg plugintest -case underscore -note 'Regenerate this file using `make plugin-mocks`.'
+ $(GOPATH)/bin/mockery -dir plugin -name KeyValueStore -output plugin/plugintest -outpkg plugintest -case underscore -note 'Regenerate this file using `make plugin-mocks`.'
+ $(GOPATH)/bin/mockery -dir plugin -name Hooks -output plugin/plugintest -outpkg plugintest -case underscore -note 'Regenerate this file using `make plugin-mocks`.'
+ @sed -i'' -e 's|API|APIMOCKINTERNAL|g' plugin/plugintest/api.go
update-jira-plugin: ## Updates Jira plugin.
go get github.com/mattermost/go-bindata/...