Skip to content

Commit 91c0ab9

Browse files
author
Bilal Boussayoud
authored
chore: add test-docker rule (#614)
1 parent db08b77 commit 91c0ab9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ COPY setup.py .
99
COPY requirements.txt .
1010
COPY README.md .
1111
COPY twilio ./twilio
12+
COPY tests ./tests
1213

1314
RUN pip install .
15+
RUN pip install -r tests/requirements.txt

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: clean install analysis test test-install develop docs docs-install
1+
.PHONY: clean install analysis test test-install test-docker develop docs docs-install
22

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

13+
test-docker:
14+
docker build -t twilio/twilio-python .
15+
docker run twilio/twilio-python pytest tests
16+
1317
develop: venv
1418
. venv/bin/activate; pip install -e . --use-mirrors
1519
. venv/bin/activate; pip install -r tests/requirements.txt

0 commit comments

Comments
 (0)