mrichomme | 9d6a676 | 2018-05-16 09:06:11 +0200 | [diff] [blame] | 1 | FROM opnfv/xtesting |
| 2 | |
| 3 | ARG OPENSTACK_TAG=stable/pike |
| 4 | ARG OPNFV_TAG=master |
| 5 | ARG ONAP_TAG=master |
| 6 | |
| 7 | ENV PYTHONPATH $PYTHONPATH:/src/testing-utils/eteutils |
| 8 | |
| 9 | COPY thirdparty-requirements.txt thirdparty-requirements.txt |
| 10 | RUN apk --no-cache add --virtual .build-deps --update \ |
| 11 | python-dev build-base linux-headers libffi-dev \ |
| 12 | openssl-dev libjpeg-turbo-dev && \ |
| 13 | git clone --depth 1 https://git.onap.org/testsuite -b $ONAP_TAG /var/opt/OpenECOMP_ETE && \ |
| 14 | git clone --depth 1 https://git.onap.org/testsuite/properties -b $ONAP_TAG /share/config && \ |
| 15 | git clone --depth 1 https://git.onap.org/testsuite/python-testing-utils -b $ONAP_TAG /src/testing-utils && \ |
| 16 | pip install \ |
| 17 | -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \ |
| 18 | -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \ |
| 19 | -rthirdparty-requirements.txt \ |
| 20 | -e /src/testing-utils && \ |
| 21 | rm -r thirdparty-requirements.txt /src/testing-utils/.git /share/config/.git \ |
| 22 | /var/opt/OpenECOMP_ETE/.git && \ |
| 23 | apk del .build-deps |
| 24 | |
| 25 | COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml |
| 26 | CMD ["run_tests", "-t", "all"] |