@@ -42,9 +42,12 @@ install-postgres: $(INSTALL_STAMP) $(DEV_STAMP) ## install postgresql support
4242install-memcached : $(INSTALL_STAMP ) $(DEV_STAMP ) # # install memcached support
4343 $(VENV ) /bin/pip install -Ue " .[memcached]" -c constraints.txt
4444
45+ install-redis : $(INSTALL_STAMP ) $(DEV_STAMP ) # # install redis support
46+ $(VENV ) /bin/pip install -Ue " .[redis]" -c constraints.txt
47+
4548install-dev : $(INSTALL_STAMP ) $(DEV_STAMP ) # # install dependencies and everything needed to run tests
4649$(DEV_STAMP ) : $(PYTHON ) constraints.txt
47- $(VENV ) /bin/pip install -Ue " .[dev,test,monitoring,postgresql,memcached]" -c constraints.txt
50+ $(VENV ) /bin/pip install -Ue " .[dev,test,monitoring,postgresql,memcached,redis ]" -c constraints.txt
4851 touch $(DEV_STAMP )
4952
5053install-docs : $(DOC_STAMP ) # # install dependencies to build the docs
@@ -87,8 +90,10 @@ tests-raw: version-file install-dev
8790.PHONY : test-deps
8891test-deps :
8992 docker pull memcached
93+ docker pull redis
9094 docker pull postgres
9195 docker run -p 11211:11211 --name kinto-memcached -d memcached || echo " cannot start memcached, already exists?"
96+ docker run -p 6379:6379 --name kinto-redis -d redis || echo " cannot start redis, already exists?"
9297 docker run -p 5432:5432 --name kinto-postgres -e POSTGRES_PASSWORD=postgres -d postgres || echo " cannot start postgres, already exists?"
9398 sleep 2
9499 PGPASSWORD=postgres psql -c " CREATE DATABASE testdb ENCODING 'UTF8' TEMPLATE template0;" -U postgres -h localhost
@@ -131,6 +136,7 @@ clean: ## remove built files and start fresh
131136 rm -fr kinto/plugins/admin/build/ kinto/plugins/admin/node_modules/
132137 docker rm -f kinto-memcached || echo " "
133138 docker rm -f kinto-postgres || echo " "
139+ docker rm -f kinto-redis || echo " "
134140
135141docs : install-docs # # build the docs
136142 $(VENV ) /bin/sphinx-build -a -W -n -b html -d $(SPHINX_BUILDDIR ) /doctrees docs $(SPHINX_BUILDDIR ) /html
0 commit comments