Run go tests with -race & fix install
This commit is contained in:
parent
8e081f9969
commit
d0df44c109
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -97,7 +97,7 @@ else ifneq ($(and $(MM_SERVICESETTINGS_SITEURL),$(MM_ADMIN_USERNAME),$(MM_ADMIN_
|
||||||
else ifneq ($(wildcard ../mattermost-server/.*),)
|
else ifneq ($(wildcard ../mattermost-server/.*),)
|
||||||
@echo "Installing plugin via filesystem. Server restart and manual plugin enabling required"
|
@echo "Installing plugin via filesystem. Server restart and manual plugin enabling required"
|
||||||
mkdir -p ../mattermost-server/plugins
|
mkdir -p ../mattermost-server/plugins
|
||||||
tar -C ../mattermost-server/plugins -zxvf dist/$(PLUGIN_ID).tar.gz
|
tar -C ../mattermost-server/plugins -zxvf dist/$(BUNDLE_NAME)
|
||||||
else
|
else
|
||||||
@echo "No supported deployment method available. Install plugin manually."
|
@echo "No supported deployment method available. Install plugin manually."
|
||||||
endif
|
endif
|
||||||
|
@ -106,7 +106,7 @@ endif
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: server/.depensure webapp/.npminstall
|
test: server/.depensure webapp/.npminstall
|
||||||
ifneq ($(HAS_SERVER),)
|
ifneq ($(HAS_SERVER),)
|
||||||
cd server && $(GO) test -v -coverprofile=coverage.txt ./...
|
cd server && $(GO) test -race -v -coverprofile=coverage.txt ./...
|
||||||
endif
|
endif
|
||||||
ifneq ($(HAS_WEBAPP),)
|
ifneq ($(HAS_WEBAPP),)
|
||||||
cd webapp && $(NPM) run fix;
|
cd webapp && $(NPM) run fix;
|
||||||
|
|
Reference in a new issue