Skip to content

Commit 50cf1e6

Browse files
author
Abhilash Joseph C
committed
Added Test Docker File
1 parent 79033e7 commit 50cf1e6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM python:3.5-alpine
2+
MAINTAINER Abhilash Joseph C. <[email protected]>
3+
# Install packages
4+
RUN apk add --no-cache libcurl
5+
6+
# Needed for pycurl
7+
ENV PYCURL_SSL_LIBRARY=openssl
8+
RUN apk add --no-cache --virtual .build-dependencies build-base curl-dev \
9+
&& pip install pycurl \
10+
&& apk del .build-dependencies
11+
RUN pip install --upgrade pip
12+
RUN pip install flake8 pytest coverage
13+
COPY requirements.txt /tmp/requirements.txt
14+
15+
#RUN pip install --no-cache-dir -r /tmp/requirements.txt
16+
17+
COPY . /py3resttest
18+
WORKDIR /py3resttest
19+
20+
21+
RUN python setup.py bdist_wheel
22+
RUN pip install -U dist/*
23+
RUN flake8 py3resttest --count --select=E9,F63,F7,F82 --show-source --statistics
24+
RUN flake8 py3resttest --count --exit-zero --max-complexity=30 --max-line-length=127 --statistics
25+
# RUN python -m pytest tests
26+
RUN coverage run --source py3resttest -m pytest tests/test_*.py
27+
RUN coverage report
28+
#RUN resttest3 --url https://www.courtlistener.com --test tests/fun_test.yaml
29+

0 commit comments

Comments
 (0)