summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-07 01:06:50 +0300
committerValery Piashchynski <[email protected]>2021-01-07 01:06:50 +0300
commitc1465d3bcdf24a78440300aa51e7cfc92ce874a8 (patch)
tree6e0f5107eba90df73724b6611ca6adfa148d2a3f /Makefile
parentc9f670ee734355cbc5d504186946b7db67cf62b5 (diff)
KV, updated, bug fixed, with intergration tests via plugins
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 30eb2942..9b9a86aa 100755
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ uninstall: ## Uninstall locally installed RR
test: ## Run application tests
#go clean -testcache
+ docker-compose -f docker-compose.yaml up -d
go test -v -race -cover -tags=debug -covermode=atomic ./utils
go test -v -race -cover -tags=debug -covermode=atomic ./pkg/pipe
go test -v -race -cover -tags=debug -covermode=atomic ./pkg/pool
@@ -46,9 +47,16 @@ test: ## Run application tests
go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/static
go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/boltdb
go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/memory
+ docker-compose down
lint: ## Run application linters
golangci-lint run
kv:
+ docker-compose -f tests/docker-compose.yaml up -d
go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/boltdb
go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/memory
+ go test -v -race -cover -tags=debug -covermode=atomic ./plugins/kv/memcached
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/boltdb
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/memory
+ go test -v -race -cover -tags=debug -covermode=atomic ./tests/plugins/kv/memcached
+ docker-compose down