File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ NAME := aredis_om
2
2
SYNC_NAME := redis_om
3
3
INSTALL_STAMP := .install.stamp
4
4
POETRY := $(shell command -v poetry 2> /dev/null)
5
+ REDIS_OM_URL ?= "redis://localhost:6380?decode_responses=True"
5
6
6
7
.DEFAULT_GOAL := help
7
8
@@ -56,16 +57,16 @@ lint: $(INSTALL_STAMP) dist
56
57
$(POETRY ) run twine check dist/*
57
58
58
59
.PHONY : format
59
- format : $(INSTALL_STAMP ) sync
60
+ format : $(INSTALL_STAMP ) sync redis
60
61
$(POETRY ) run isort --profile=black --lines-after-imports=2 ./tests/ $(NAME ) $(SYNC_NAME )
61
62
$(POETRY ) run black ./tests/ $(NAME ) $(SYNC_NAME )
62
63
63
64
.PHONY : test
64
65
test : $(INSTALL_STAMP ) sync
65
- REDIS_OM_URL=" redis://localhost:6380?decode_responses=True " $(POETRY ) run pytest -n auto -vv ./tests/ ./tests_sync/ --cov-report term-missing --cov $(NAME ) $(SYNC_NAME )
66
+ REDIS_OM_URL=" $( REDIS_OM_URL ) " $(POETRY ) run pytest -n auto -vv ./tests/ ./tests_sync/ --cov-report term-missing --cov $(NAME ) $(SYNC_NAME )
66
67
67
68
.PHONY : test_oss
68
- test_oss : $(INSTALL_STAMP ) sync
69
+ test_oss : $(INSTALL_STAMP ) sync redis
69
70
# Specifically tests against a local OSS Redis instance via
70
71
# docker-compose.yml. Do not use this for CI testing, where we should
71
72
# instead have a matrix of Docker images.
You can’t perform that action at this time.
0 commit comments