summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-11-30 14:55:44 -0600
committerGitHub <noreply@github.com>2017-11-30 14:55:44 -0600
commitdaebd26a2894d88eb4c703b3be75f042cd563fef (patch)
tree0dfd6d21a1c284271f366c1b8279833fc4e7ed30 /Makefile
parenteaca461ee35993c07936a5888c003153d9e9b24f (diff)
downloadchat-daebd26a2894d88eb4c703b3be75f042cd563fef.tar.gz
chat-daebd26a2894d88eb4c703b3be75f042cd563fef.tar.bz2
chat-daebd26a2894d88eb4c703b3be75f042cd563fef.zip
PLT-8018: Bundled jira plugin (#7920)
* bundled jira plugin * fix generated file formatting, add prepackaged key * whoops, uploaded wrong file * whitelist generated files for license check * make it work for people without go/bin in their path
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a0cf74f1c..a056a264f 100644
--- a/Makefile
+++ b/Makefile
@@ -275,6 +275,17 @@ store-mocks:
go get github.com/vektra/mockery/...
GOPATH=$(shell go env GOPATH) $(shell go env GOPATH)/bin/mockery -dir store -all -output store/storetest/mocks -note 'Regenerate this file using `make store-mocks`.'
+update-jira-plugin:
+ go get github.com/jteeuwen/go-bindata/...
+ curl -s https://api.github.com/repos/mattermost/mattermost-plugin-jira/releases/latest | grep browser_download_url | grep darwin-amd64 | cut -d '"' -f 4 | wget -qi - -O plugin.tar.gz
+ $(shell go env GOPATH)/bin/go-bindata -pkg jira -o app/plugin/jira/plugin_darwin_amd64.go plugin.tar.gz
+ curl -s https://api.github.com/repos/mattermost/mattermost-plugin-jira/releases/latest | grep browser_download_url | grep linux-amd64 | cut -d '"' -f 4 | wget -qi - -O plugin.tar.gz
+ $(shell go env GOPATH)/bin/go-bindata -pkg jira -o app/plugin/jira/plugin_linux_amd64.go plugin.tar.gz
+ curl -s https://api.github.com/repos/mattermost/mattermost-plugin-jira/releases/latest | grep browser_download_url | grep windows-amd64 | cut -d '"' -f 4 | wget -qi - -O plugin.tar.gz
+ $(shell go env GOPATH)/bin/go-bindata -pkg jira -o app/plugin/jira/plugin_windows_amd64.go plugin.tar.gz
+ rm plugin.tar.gz
+ gofmt -s -w ./app/plugin/jira
+
check-licenses:
./scripts/license-check.sh $(TE_PACKAGES) $(EE_PACKAGES)