From d7f49c3135cc4468c203ffc5560e36882dc7514b Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Wed, 20 Jan 2021 09:55:36 -0800 Subject: [PATCH] make ci for check-in tests --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 857e7a630..21663078a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: prebuild clean cleanall server server-mac server-linux server-win server-linux-package generate watch-server webapp mac-app win-app linux-app +.PHONY: prebuild clean cleanall ci server server-mac server-linux server-win server-linux-package generate watch-server webapp mac-app win-app linux-app PACKAGE_FOLDER = octo @@ -25,6 +25,11 @@ prebuild: go get github.com/mattn/go-sqlite3 cd webapp; npm install +ci: server-test + cd webapp; npm run check + cd webapp; npm run test + cd webapp; npm run cypress:ci + server: $(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=dev") cd server; go build -ldflags '$(LDFLAGS)' -o ../bin/octoserver ./main