diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-17 08:44:50 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-17 08:44:50 -0700 |
commit | de64bd19d5a9811ee2539baa8fdb61c4ece57378 (patch) | |
tree | 51a2527782363a932f4791fe9cf31ca89052e12b /Makefile | |
parent | 047fec54ccc3b0d72bb6a425d06302ffa210553f (diff) | |
parent | eb4b80a4845a738f5a1e84504a31f6f54bc4fe92 (diff) | |
download | chat-de64bd19d5a9811ee2539baa8fdb61c4ece57378.tar.gz chat-de64bd19d5a9811ee2539baa8fdb61c4ece57378.tar.bz2 chat-de64bd19d5a9811ee2539baa8fdb61c4ece57378.zip |
Merge pull request #703 from mattermost/add-gofmt
Adding gofmt to travis build
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -39,6 +39,15 @@ travis: @echo Checking for style guide compliance cd web/react && $(ESLINT) --quiet components/* dispatcher/* pages/* stores/* utils/* + @echo Running gofmt + $(eval GOFMT_OUTPUT := $(shell gofmt -d -s api/ model/ store/ utils/ manualtesting/ mattermost.go 2>&1)) + @echo "$(GOFMT_OUTPUT)" + @if [ ! "$(GOFMT_OUTPUT)" ]; then \ + echo "gofmt sucess"; \ + else \ + echo "gofmt failure"; \ + exit 1; \ + fi @$(GO) build $(GOFLAGS) ./... @$(GO) install $(GOFLAGS) ./... @@ -108,6 +117,15 @@ install: check: install @echo Running ESLint... -cd web/react && $(ESLINT) components/* dispatcher/* pages/* stores/* utils/* + @echo Running gofmt + $(eval GOFMT_OUTPUT := $(shell gofmt -d -s api/ model/ store/ utils/ manualtesting/ mattermost.go 2>&1)) + @echo "$(GOFMT_OUTPUT)" + @if [[ ! "$(GOFMT_OUTPUT)" ]]; then \ + echo "gofmt sucess"; \ + else \ + echo "gofmt failure"; \ + exit 1; \ + fi test: install @mkdir -p logs |