Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add test-docker rule #614

Merged
merged 2 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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