summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-07-29 20:55:56 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-07-29 20:55:56 +0500
commit1c186121fe04fb61d945f0b57112e28675c8e066 (patch)
treef2cf511b15990bd01bfde349016388af39f8d340 /Makefile
parent5d77ff4bcde3496554551701438c1f42550e58b3 (diff)
parent27dbcd8767426a60699d2acbeeb9b8a825d5b728 (diff)
downloadchat-1c186121fe04fb61d945f0b57112e28675c8e066.tar.gz
chat-1c186121fe04fb61d945f0b57112e28675c8e066.tar.bz2
chat-1c186121fe04fb61d945f0b57112e28675c8e066.zip
Merge branch 'master' of https://github.com/mattermost/platform
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 222d4ffe4..14a6ffc7d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ GOFLAGS ?= $(GOFLAGS:)
BUILD_NUMBER ?= $(BUILD_NUMBER:)
GO=$(GOPATH)/bin/godep go
+ESLINT=web/react/node_modules/eslint/bin/eslint.js
ifeq ($(BUILD_NUMBER),)
BUILD_NUMBER := dev
@@ -62,6 +63,14 @@ install:
@cd web/react/ && npm install
+check: install
+ @echo Running ESLint...
+ @$(ESLINT) web/react/components/*
+ @$(ESLINT) web/react/dispatcher/*
+ @$(ESLINT) web/react/pages/*
+ @$(ESLINT) web/react/stores/*
+ @$(ESLINT) web/react/utils/*
+
test: install
@mkdir -p logs
@$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=180s ./api || exit 1