summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-07 13:29:07 +0300
committerValery Piashchynski <[email protected]>2021-01-07 13:29:07 +0300
commit21689afbc5f717274cd608358ffca3bdacb38f69 (patch)
tree159ddd2b154a5afbec5dedc75a1a94c5a83ebfae /Makefile
parentc1465d3bcdf24a78440300aa51e7cfc92ce874a8 (diff)
Fix compatibility issues, add tests to the CI
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9b9a86aa..665c2143 100755
--- a/Makefile
+++ b/Makefile
@@ -24,8 +24,8 @@ uninstall: ## Uninstall locally installed RR
rm -f /usr/local/bin/rr
test: ## Run application tests
- #go clean -testcache
- docker-compose -f docker-compose.yaml up -d
+ go clean -testcache
+ docker-compose -f tests/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
@@ -47,7 +47,11 @@ 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
+ 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 -f tests/docker-compose.yaml down
lint: ## Run application linters
golangci-lint run
@@ -59,4 +63,4 @@ kv:
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
+ docker-compose -f tests/docker-compose.yaml down