Skip to content
Snippets Groups Projects
pycif-tests.Dockerfile 716 B
Newer Older
# Build a Docker image that contains pyCIF and all requirements.
Antoine Berchet's avatar
Antoine Berchet committed
FROM pycif/pycif-debug:0.1
#FROM pycif-test
RUN apt-get install -y python-yaml \
    && pip install pytest pytest-html pyyaml
Antoine Berchet's avatar
Antoine Berchet committed
COPY ./ /tmp/CIF

RUN cd /tmp/CIF/ \
    && python setup.py develop --user -u \
    && python setup.py develop --user

RUN cd /tmp/CIF/ \
    && export PYCIF_DATATEST=/tmp/PYCIF_DATA_TEST/ \
    && pytest -s -m "test_in_ci and chimere"
#RUN cd /tmp/CIF/config_files/tuto_gauss \
#    && python -m pycif config_dummy_fwd.yml
#RUN ls -R /tmp/PYCIF_DATA_TEST
Antoine Berchet's avatar
Antoine Berchet committed

#RUN cd /tmp/CIF/config_files/tuto_chimere/ \
#    && python -m pycif config_chimere_fwd_academic_onespec.yml;
#RUN cd /tmp/CIF/ \
#    && tox -e py36 -e coverage