-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pytest==2.9.2 | ||
pytest-cov==2.2.1 | ||
pytest==3.0.5 | ||
pytest-cov==2.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM metabrainz/python:2.7 | ||
|
||
ENV DOCKERIZE_VERSION v0.2.0 | ||
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | ||
|
||
RUN mkdir /code | ||
WORKDIR /code | ||
|
||
# Python dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
git | ||
COPY . /code/ | ||
RUN pip install -r requirements.txt | ||
RUN pip install -r requirements_dev.txt | ||
|
||
ENV REDIS_HOST "redis" | ||
|
||
CMD dockerize -wait tcp://redis:6379 -timeout 10s \ | ||
py.test --junitxml=/data/test_report.xml \ | ||
--cov-report xml:/data/coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM metabrainz/python:3.5 | ||
|
||
ENV DOCKERIZE_VERSION v0.2.0 | ||
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | ||
|
||
RUN mkdir /code | ||
WORKDIR /code | ||
|
||
# Python dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
git | ||
COPY . /code/ | ||
RUN pip install -r requirements.txt | ||
RUN pip install -r requirements_dev.txt | ||
|
||
ENV REDIS_HOST "redis" | ||
|
||
CMD dockerize -wait tcp://redis:6379 -timeout 10s \ | ||
py.test --junitxml=/data/test_report.xml \ | ||
--cov-report xml:/data/coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Docker Compose file for testing with Python 2 | ||
version: "2" | ||
services: | ||
|
||
test: | ||
build: | ||
context: .. | ||
dockerfile: ./test/Dockerfile.py2 | ||
links: | ||
- redis | ||
|
||
redis: | ||
image: redis:3.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Docker Compose file for testing with Python 3 | ||
version: "2" | ||
services: | ||
|
||
test: | ||
build: | ||
context: .. | ||
dockerfile: ./test/Dockerfile.py3 | ||
links: | ||
- redis | ||
|
||
redis: | ||
image: redis:3.2.1 |