forked from fabric8-analytics/f8a-pypi-insights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tests
21 lines (16 loc) · 937 Bytes
/
Dockerfile.tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM quay.io/openshiftio/fabric8-analytics-f8a-pypi-insights:latest
LABEL MAINTAINER="Aagam Shah <[email protected]>"
# --------------------------------------------------------------------------------------------------
# copy testing source code and scripts into root dir /
# --------------------------------------------------------------------------------------------------
ADD ./tests/ /tests
ADD ./.git/ /.git
ADD ./tests/scripts/entrypoint-test.sh /entrypoint-test.sh
RUN chmod 0777 /entrypoint-test.sh
ENV PYTHONPATH=/
RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-rudra#egg=rudra
RUN pip3 install pytest pytest-cov radon==2.4.0 faker mock
# --------------------------------------------------------------------------------------------------
# RUN THE UNIT TESTS
# --------------------------------------------------------------------------------------------------
ENTRYPOINT ["/entrypoint-test.sh"]