Skip to content

Commit

Permalink
chore: add test-docker rule (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilal Boussayoud committed Aug 11, 2022
1 parent db08b77 commit 91c0ab9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ COPY setup.py .
COPY requirements.txt .
COPY README.md .
COPY twilio ./twilio
COPY tests ./tests

RUN pip install .
RUN pip install -r tests/requirements.txt
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean install analysis test test-install develop docs docs-install
.PHONY: clean install analysis test test-install test-docker develop docs docs-install

venv:
@python --version || (echo "Python is not installed, Python 3.6+"; exit 1);
Expand All @@ -10,6 +10,10 @@ install: venv
test-install: install
. venv/bin/activate; pip install -r tests/requirements.txt

test-docker:
docker build -t twilio/twilio-python .
docker run twilio/twilio-python pytest tests

develop: venv
. venv/bin/activate; pip install -e . --use-mirrors
. venv/bin/activate; pip install -r tests/requirements.txt
Expand Down

0 comments on commit 91c0ab9

Please sign in to comment.