summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2018-01-31 16:32:18 -0800
committerGitHub <noreply@github.com>2018-01-31 16:32:18 -0800
commit629bdb314e4b4c735fa3a5b961ab7185eb74618c (patch)
tree338a7f6390110952e152f6b278801e85445f58e7 /Makefile
parentf988e5bc305cee1d1ae23717caec7ff20bb79811 (diff)
downloadchat-629bdb314e4b4c735fa3a5b961ab7185eb74618c.tar.gz
chat-629bdb314e4b4c735fa3a5b961ab7185eb74618c.tar.bz2
chat-629bdb314e4b4c735fa3a5b961ab7185eb74618c.zip
Adding sample data to the make file (#8171)
* Adding sample data to the make file * Adding regular acct message
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2e4225aca..4830dcf45 100644
--- a/Makefile
+++ b/Makefile
@@ -380,6 +380,15 @@ cover: ## Runs the golang coverage tool. You must run the unit tests first.
$(GO) tool cover -html=cover.out
$(GO) tool cover -html=ecover.out
+test-data: start-docker ## Add test data to the local instance.
+ $(GO) run $(GOFLAGS) $(GO_LINKER_FLAGS) $(PLATFORM_FILES) sampledata -w 1
+
+ @echo You may need to restart the Mattermost server before using the following
+ @echo ====================================================================================
+ @echo Login with a system admin account email=user-0@sample.mattermost.com password=user-0
+ @echo Login with a regular account email=user-1@sample.mattermost.com password=user-1
+ @echo ====================================================================================
+
run-server: start-docker ## Starts the server.
@echo Running mattermost for development