add all test task.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
3af8d302fb
commit
865f55438d
11
Makefile
11
Makefile
|
@ -11,9 +11,18 @@ all: build
|
||||||
build: clean
|
build: clean
|
||||||
sh script/build.sh
|
sh script/build.sh
|
||||||
|
|
||||||
test:
|
test: memory_test redis_test boltdb_test
|
||||||
cd gorush && go test -cover -v -coverprofile=coverage.out
|
cd gorush && go test -cover -v -coverprofile=coverage.out
|
||||||
|
|
||||||
|
memory_test:
|
||||||
|
cd gorush/storage/memory && go test -v -cover *.go
|
||||||
|
|
||||||
|
redis_test:
|
||||||
|
cd gorush/storage/redis && go test -v -cover *.go
|
||||||
|
|
||||||
|
boltdb_test:
|
||||||
|
cd gorush/storage/boltdb && go test -v -cover *.go
|
||||||
|
|
||||||
html: test
|
html: test
|
||||||
cd gorush && go tool cover -html=coverage.out
|
cd gorush && go tool cover -html=coverage.out
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import (
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/appleboy/gorush/gorush/config"
|
"github.com/appleboy/gorush/gorush/config"
|
||||||
apns "github.com/sideshow/apns2"
|
apns "github.com/sideshow/apns2"
|
||||||
"gopkg.in/redis.v3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -21,8 +20,6 @@ var (
|
||||||
LogAccess *logrus.Logger
|
LogAccess *logrus.Logger
|
||||||
// LogError is log server error log
|
// LogError is log server error log
|
||||||
LogError *logrus.Logger
|
LogError *logrus.Logger
|
||||||
// RedisClient is global variable for redis
|
|
||||||
RedisClient *redis.Client
|
|
||||||
// StatStorage implements the storage interface
|
// StatStorage implements the storage interface
|
||||||
StatStorage Storage
|
StatStorage Storage
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue