Commit graph

49 commits

Author SHA1 Message Date
Christopher Poile
4e15acf566
[MM-57855] Add manifest validation step (#198) 2024-04-22 11:03:18 -04:00
Ben Schumacher
cb94a72744
Fix flaky TestFilterLogEntries (#197) 2024-03-20 12:45:34 +01:00
Ben Schumacher
8dd6e7c187
Fetch plugin logs from server (#193)
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
2024-01-30 16:49:59 +01:00
Jesse Hallam
de0b31b48a
Sync with playbooks: install-go-tools, gotestsum, and dynamic versions (#192)
* Revert "Update main.go (#154)"

This reverts commit be4a281d0c.

* Revert "[MM-33506] Use embed package to include plugin manifest (#145)"

This reverts commit ca9ee3c17c.

* Revert "Don't generate manifest.ts (#127)"

This reverts commit 18d30b50bc.

* install-go-tools target, adopt gotestsum

* bring back make apply + automatic versioning

* Update build/manifest/main.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* suppress git describe error when no tags match

* make version/release notes opt-in

* fix whitespace in Makefile

* document version management options

---------

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
2024-01-23 14:02:37 +00:00
Ben Schumacher
d1047c7140
Remove build/sync tool (#186) 2023-08-02 12:45:06 +02:00
Ben Schumacher
8862f96d1f
[MM-53695] Make use of github.com/mattermost/mattermost/server/public (#185) 2023-08-01 21:07:15 +02:00
Ben Schumacher
0f9b8ba790
Only build binary for current architecture in dev mode (#161) 2022-01-17 13:15:25 +01:00
Ben Schumacher
4571b3b71c
[MM-38075] Update server dependency (#158) 2021-09-07 17:47:26 +02:00
Ben Schumacher
a80b066195
[MM-38075] Use mattermost-server/v6 (#157) 2021-08-25 09:29:26 +02:00
Jesse Hallam
f547011d23
add arm64 support (#155)
* add arm64 support

* arm64s arent exe...

* s/windows/darwin/
2021-06-16 09:38:16 -03:00
Chetanya Kandhari
be4a281d0c
Update main.go (#154) 2021-06-01 09:38:41 +02:00
Ben Schumacher
ca9ee3c17c
[MM-33506] Use embed package to include plugin manifest (#145) 2021-05-18 15:51:24 +02:00
Domas Monkus
54637e7313
Synchronization tool file history tests modified to set up a temporary git repo (#138) 2020-11-03 10:19:36 +01:00
Domas Monkus
95bcc7ac80
Disable git file history test that relies on commits not being squashed in github PR merges. (#135) 2020-10-09 11:55:14 +02:00
Domas Monkus
5eb33f8675
Removed file git history (#128) 2020-10-09 09:52:05 +02:00
Ben Schumacher
57f7843ae1
Make plan.yml general purpose (#125) 2020-10-09 09:42:45 +02:00
Jared Shields
a09b4949fe
Removed trailing slash from site url. (#120)
* Removed trailing slash from site url.

* Reverted trimming of the URL. Updated reference in the build's go.mod to use specific commit in mattermost-server that contains fix for trailing slashes on the site url.

Co-authored-by: jshields <jshields@caci.com>
2020-09-28 09:59:39 -03:00
Ben Schumacher
d9532472eb
Migrate index.js to use Typescript (#129)
* Migrate index.js to use Typescript

* Fix tests
2020-09-24 09:42:36 +02:00
Ben Schumacher
18d30b50bc
Don't generate manifest.ts (#127) 2020-09-23 01:14:00 +02:00
Ben Schumacher
eae9f9826a
Fix bad merge (#126) 2020-09-17 02:36:58 +02:00
Michael Kochell
511805e36c
Add separate go.mod to build folder (#119)
Co-authored-by: Hanzei <hanzei@mailbox.org>
2020-09-17 01:55:20 +02:00
Ben Schumacher
dcaf9dd289
Fix issues with Repository synchronization tool (#124)
* Only run tests in build/sync if directory exists

* Use t.Helper()

* Don't compare size of directories

* Fix TestFileHistory

* Fix linter issue

* Apply changes from https://github.com/mattermost/mattermost-plugin-github/pull/345

* Use ts file for tests

* Add sync target
2020-09-15 12:32:37 -04:00
Domas Monkus
0688e8df4c
MM-21722 - Repository synchronization tool (#86) 2020-09-13 15:30:09 +02:00
Michael Kochell
4523a0a25e
[MM-26997] Use socket API to deploy plugins, if available (#108)
* Use socket API if available

* Make socket path configurable by env var

* Add local mode docs to README

* Change README wordings

* Add log when using local mode. Change error handling for local mode deploy.

* address requests in pluginctl and update mattermost-server

* check if MM_LOCALSOCKETPATH is present before logging

* update go.sum
2020-07-29 05:21:46 -04:00
Jesse Hallam
a49d6f6dd4
Various tooling improvements from other plugins (#96) 2020-06-22 11:21:37 -04:00
Ben Schumacher
f5e50c1e17
Integrate GolangCI-Lint (#90)
* Use plugin orb for ci

* Add golangci-lint config and fix issues

* Simplify circleci config

* Drop unparam

* Drop maligned

* Ignore varcheck in server/manifest.go
2020-04-02 15:01:00 -03:00
Gabe Jackson
6eea8c4577
Cleanup deploy error message (#88)
This removes a double print of the API response error message.
2020-03-13 09:10:53 -07:00
Jesse Hallam
282a8cf227
Allow make deploy using token (#79)
* Allow make deploy using token

Introduce support for `MM_ADMIN_TOKEN` as an alternative to defining `MM_ADMIN_USERNAME` and `MM_ADMIN_PASSWORD.

* reverse README.md authentication schemes

* wrap errors

* Update build/deploy/main.go

Co-Authored-By: Ben Schumacher <ben.schumacher@mattermost.com>

* fix linting

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2020-02-08 10:14:26 -05:00
Ben Schumacher
88991946af
Fix invalid import in manifest.go (#77) 2019-12-23 08:21:50 +01:00
Ben Schumacher
1c3014f906
Bump Mattermost to 5.18 (#76) 2019-12-22 16:23:55 +01:00
İlker Göktuğ Öztürk
8cf303c943 build/manifest: print whole manifest variable as it is (#73)
while generating manifest files for both JS and Go sources.

fixes #72.
2019-12-20 23:01:40 +01:00
Jesse Hallam
8e090661e8 make deploy reliable using Go (#74) 2019-11-20 23:16:23 +01:00
Mario de Frutos Dieguez
b7165a0f5f Mark manifest.[go|js] as a generated file (#57)
manifest.[go|js] files are autogenerated so we dont need to
show diffs, cope with conflicts in merge operations or show the
diff in github.
2019-08-14 23:40:52 +02:00
Jesse Hallam
0f24f27f20
Update custom.mk
Fix typo.
2019-07-09 14:42:46 -03:00
Hanzei
5763d2f9f3 Add support for custom makefile (#45)
* Add support for custom makefile

* Add documention
2019-06-24 19:50:25 -04:00
Hanzei
43af4d9cfe
Refactoring (#43)
* Cleanup .gitignore

* Document minimum server version

* Become golint compliant

* Use pre defined http method

* Update dependencies

* Add i18n-extract target

* Add golint target

* Run check-style against all go files

Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com>
2019-06-22 16:15:48 +02:00
Hanzei
fe3553d999 Go modules (#22)
* Move to go modules

* Move go.mod in root directory

* Update Readme

* Remove golang.org/x/tools from go.mod

* Remove go list from targets

* Set go version to 1.12

* Update Makefile

Co-Authored-By: hanzei <16541325+hanzei@users.noreply.github.com>

* Update dependencies

* Fix build
2019-04-10 12:42:33 -07:00
happygaijin
0e863452cc MM-14575: Automatically serve static files for plugins (#33)
* MM-14575: Automatically serve static files for plugins
* Added sample public file
* Added HAS_PUBLIC to Makefile to test for public folder
* Added "static_files" config setting

* MM-14575: Removing static_files from plugin.json

* MM14575: Moving public folder to bundle root

* MM14575:Moving public directory to root
2019-04-02 13:22:01 -07:00
Hanzei
415e8b5f72
Update dependencies for 5.6 (#24) 2018-12-17 08:28:01 +01:00
Hanzei
e30e2613a4
Update Mattermost to v5.4 2018-10-17 07:19:22 +02:00
Hanzei
d918262365
Update server dependencies 2018-09-23 08:22:59 +02:00
Jesse Hallam
15a3d3c433
fix index.js import of plugin id 2018-09-20 14:21:10 -04:00
Jesse Hallam
5b2980d1ac
tweak plugin id/version injection
* define BUNDLE_NAME after including build/setup.mk (just for clarity, not correctness)
* separate plugin id from version with dash in bundle name to match Mattermost package
* fix various js/go idioms (some pre-existing!)
* fix error message
2018-09-20 11:56:40 -04:00
Hanzei
ed143d89d4
Include version into bundle name 2018-09-18 08:19:42 +02:00
Hanzei
8cb9ff92df
Extract plugin version from manifest 2018-09-18 08:12:48 +02:00
Jesse Hallam
2de3471aa2
more Makefile improvements
* warn upfront if go/dep/npm not available
* try to find dep in $GOPATH/bin if not installed globally
* only override variables if not externally defined, allowing manual override from command line
* split up Makefile into a buid/setup.mk for simplicity

I didn't actually find anything that made this Makefile not-linux
specific -- tested on Debian with the standard make installed.
2018-07-31 16:15:55 -04:00
Jesse Hallam
8788b41ab2
s/vgo/dep/ 2018-07-27 14:32:36 -04:00
Jesse Hallam
6d10b915ca
tweak plugin_id.js generation 2018-07-24 16:06:31 -04:00
Jesse Hallam
189f92c54b
initial commit 2018-07-23 13:43:22 -04:00