aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2017-11-27 21:30:04 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2017-11-27 21:40:05 -0800
commitbb8e61c7c5d9f297bde207c6de07a5d4b67dcd29 (patch)
tree1d907010e659bbcf65c32df8d10fd91de97a8703 /Makefile
parent8781648af9f730d8bd1a7d9c395c1f28f9058716 (diff)
Make sure golint pass on the code base
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 61ec8c2..0b4be22 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
-APP = miniflux
-VERSION = $(shell git rev-parse --short HEAD)
-BUILD_DATE = `date +%FT%T%z`
-DB_URL = postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
+APP := miniflux
+VERSION := $(shell git rev-parse --short HEAD)
+BUILD_DATE := `date +%FT%T%z`
+PKG_LIST := $(shell go list ./... | grep -v /vendor/)
+DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
-.PHONY: build-linux build-darwin build run clean test integration-test clean-integration-test
+.PHONY: build-linux build-darwin build run clean test lint integration-test clean-integration-test
build-linux:
@ go generate
@@ -25,6 +26,9 @@ clean:
test:
go test -cover -race ./...
+lint:
+ @ golint -set_exit_status ${PKG_LIST}
+
integration-test:
psql -U postgres -c 'drop database if exists miniflux_test;'
psql -U postgres -c 'create database miniflux_test;'