summaryrefslogtreecommitdiff
path: root/src/hub/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/hub/Makefile')
-rw-r--r--src/hub/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/hub/Makefile b/src/hub/Makefile
index 0c34f14..87890a4 100644
--- a/src/hub/Makefile
+++ b/src/hub/Makefile
@@ -12,7 +12,7 @@
# live and recorded data.
#
#
-# Copyright (C) 2014-2015 Christian Pointner <equinox@spreadspace.org>
+# Copyright (C) 2014-2017 Christian Pointner <equinox@spreadspace.org>
# Markus Grüneis <gimpf@gimpf.org>
#
# This file is part of sfive.
@@ -38,13 +38,10 @@ endif
EXECUTEABLE := sfive-hub
-LIBS := "gopkg.in/gorp.v2" \
- "github.com/mattn/go-sqlite3" \
+LIBS := "github.com/boltdb/bolt" \
"github.com/zenazn/goji" \
"github.com/pborman/uuid" \
"github.com/equinox0815/graphite-golang"
-# "github.com/go-sql-driver/mysql"
-# "github.com/ziutek/mymysql/godrv"
all: build test
@@ -83,6 +80,11 @@ bench: getlibs
@echo "testing and benchmarking: sfive"
@$(GOCMD) test -bench=. spreadspace.org/sfive
+cover: getlibs
+ @echo "testing with coverage output"
+ @$(GOCMD) test -coverprofile=coverage.out spreadspace.org/sfive
+ @$(GOCMD) tool cover -html=coverage.out
+
clean:
rm -rf pkg/*/spreadspace.org
rm -rf bin