mirror of https://github.com/peter4431/rq.git
tests: added ability to run tests in Docker (#1361)
* tests: added ability to run tests in Docker useful to run full test suit on Mac * tests: minor improvement in dockerfile for tests * tests: typo in Dockerfile * tests: updated dev requirements Co-authored-by: Ruslan Mullakhmetov <ruslan@twentythree.net>main
parent
f5ce159b60
commit
0e65bab10b
@ -0,0 +1,11 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y redis-server python3-pip
|
||||||
|
|
||||||
|
COPY . /tmp/rq
|
||||||
|
WORKDIR /tmp/rq
|
||||||
|
RUN pip3 install -r /tmp/rq/requirements.txt -r /tmp/rq/dev-requirements.txt
|
||||||
|
RUN python3 /tmp/rq/setup.py build && python3 /tmp/rq/setup.py install
|
||||||
|
|
||||||
|
CMD redis-server& RUN_SLOW_TESTS_TOO=1 pytest /tmp/rq/tests/ --durations=5 -v --log-cli-level 10
|
@ -1,3 +1,4 @@
|
|||||||
mock
|
mock
|
||||||
pytest
|
|
||||||
psutil
|
psutil
|
||||||
|
pytest
|
||||||
|
sentry_sdk
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker build . -t rqtest && docker run --rm rqtest
|
Loading…
Reference in New Issue