Run go tests with -race & fix install

This commit is contained in:
Hanzei 2018-09-23 08:18:07 +02:00
parent 8e081f9969
commit d0df44c109
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0

View file

@ -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;