diff options
author | Corey Hulen <corey@hulen.com> | 2015-07-06 11:24:06 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-07-06 11:24:06 -0800 |
commit | 3dec509899f60ca0d2eadfcc192ccc49969852ef (patch) | |
tree | a86552979d6fab4dbe336171ade9d3e69b64fff0 /Makefile | |
parent | 10b625ba1740c6177cfe5c06484f4a14867523bd (diff) | |
parent | 34fb817a4a4cd2761ba35a2c94f9d0eb79d06244 (diff) | |
download | chat-3dec509899f60ca0d2eadfcc192ccc49969852ef.tar.gz chat-3dec509899f60ca0d2eadfcc192ccc49969852ef.tar.bz2 chat-3dec509899f60ca0d2eadfcc192ccc49969852ef.zip |
Merge pull request #131 from mattermost/mm-1391
Fixes mm-1391 adding travis CI
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -1,4 +1,4 @@ -.PHONY: all test clean build install run stop cover dist dist-battlehouse cleandb +.PHONY: all test clean build install run stop cover dist cleandb travis GOPATH ?= $(GOPATH:) GOFLAGS ?= $(GOFLAGS:) @@ -15,7 +15,25 @@ DIST_RESULTS=$(DIST_ROOT)/results BENCH=. TESTS=. -all: build +all: travis + +travis: + @echo building for travis + + rm -Rf $(DIST_ROOT) + @go clean $(GOFLAGS) -i ./... + + @cd web/react/ && npm install + + @go build $(GOFLAGS) ./... + + @mkdir -p logs + + @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 build: @go build $(GOFLAGS) ./... |