Re-enable tests in Dockerfiles.

This commit is contained in:
Ben Sturmfels 2021-03-06 11:49:56 +11:00
parent 370d8a7296
commit fa1b4315a1
2 changed files with 8 additions and 4 deletions

View File

@ -6,11 +6,13 @@
#
# To build this Docker image, run:
#
# docker build -t mediagoblin-python3 -f Dockerfile-debian-python3-sqlite . # or
# docker build -t mediagoblin-python3 - < Dockerfile-debian-python3-sqlite # with no build context
# docker build -t mediagoblin-python3 - < Dockerfile-debian-python3-sqlite
#
# The "- < Dockerfile" format advises Docker not to include the current
# directory as build context.
# directory as build context. Alternatively the following provides build
# context:
#
# docker build -t mediagoblin-python3 -f Dockerfile-debian-python3-sqlite .
#
# Before running the image you first need to first assign the "mediagoblin" and
# "user_dev" directories to an artificial group (1024) on the host that is
@ -147,7 +149,7 @@ RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
RUN make
# Run the tests.
# RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
# Only safe if being run on a clean git checkout. Otherwise you may have already
# customised mediagoblin.ini to already install these.

View File

@ -73,6 +73,8 @@ RUN ./bootstrap.sh
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
RUN make
RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
# RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
# RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini