forked from fabric8-analytics/f8a-hpf-insights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tests
21 lines (16 loc) · 854 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-hpf-insights:latest
LABEL MAINTAINER="Lucky Suman <[email protected]>"
# --------------------------------------------------------------------------------------------------
# copy testing source code and scripts into root dir /
# --------------------------------------------------------------------------------------------------
ADD ./tests/ /tests
ADD ./tools/ /tools
ADD ./tests/scripts/entrypoint-test.sh /entrypoint-test.sh
ADD ./.git /.git
RUN chmod 0777 /entrypoint-test.sh
ENV PYTHONPATH=/
RUN pip3 install pytest pytest-cov radon==2.4.0
# --------------------------------------------------------------------------------------------------
# RUN THE UNIT TESTS
# --------------------------------------------------------------------------------------------------
ENTRYPOINT ["/entrypoint-test.sh"]