summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-11-23 11:31:17 -0500
committerJoram Wilander <jwawilander@gmail.com>2015-11-23 11:31:17 -0500
commitc03a9859838e3492b50e71383587b98231408b7b (patch)
treeffcdea0c7a72ad3f0f5391acfdf68b538bb4782e /Makefile
parent60e2314baaa17fe972f13e6f763e08e03e356c8a (diff)
parent0a5aadc8b2445c95063836962374db4ed532e858 (diff)
downloadchat-c03a9859838e3492b50e71383587b98231408b7b.tar.gz
chat-c03a9859838e3492b50e71383587b98231408b7b.tar.bz2
chat-c03a9859838e3492b50e71383587b98231408b7b.zip
Merge pull request #1499 from mattermost/makefile-tweaks
Moving removal of data directory to nuke. Updating dev setup.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7e0687d76..8e7cfe3ed 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ DOCKER_CONTAINER_NAME ?= mm-test
all: dist-local
-dist: | build-server build-client test package
+dist: | build-server build-client go-test package
mv ./model/version.go.bak ./model/version.go
dist-local: | start-docker dist
@@ -143,13 +143,15 @@ build-client:
cd web/sass-files && compass compile -e production --force
-test:
+go-test:
$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=180s ./api || exit 1
$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=12s ./model || exit 1
$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=120s ./store || exit 1
$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=120s ./utils || exit 1
$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=120s ./web || exit 1
+test: | start-docker go-test
+
travis-init:
@echo Setting up enviroment for travis
@@ -205,7 +207,6 @@ clean: stop-docker
rm -f web/static/js/libs*.js
rm -f web/static/css/styles.css
- rm -rf data
rm -rf api/data
rm -rf logs
rm -rf web/sass-files/.sass-cache
@@ -216,6 +217,7 @@ clean: stop-docker
rm -f .prepare
nuke: | clean clean-docker
+ rm -rf data
.prepare:
@echo Preparation for run step