Run LDAP, OpenID and PDF tests under Docker.

This commit is contained in:
Ben Sturmfels 2021-03-09 16:56:28 +11:00
parent 95be20a936
commit 3ba11716c1
6 changed files with 34 additions and 5 deletions

View File

@ -43,7 +43,13 @@ packages:
# Install document (PDF-only) dependencies.
- poppler-utils
# Install LDAP depedencies.
- python3-ldap
# Install OpenID dependencies.
- python3-openid
tasks:
- core: |
cd mediagoblin

View File

@ -45,6 +45,12 @@ packages:
# # Install document (PDF-only) dependencies.
# - poppler-utils
# Install LDAP depedencies.
- python3-ldap
# Install OpenID dependencies.
- python3-openid
tasks:
- core: |

View File

@ -112,6 +112,12 @@ libboost-python-dev
RUN apt-get install -y \
poppler-utils
# Install LDAP depedencies.
RUN apt-get install -y python3-ldap
# Install OpenID dependencies.
RUN apt-get install -y python3-openid
# Create working directory.
RUN mkdir /opt/mediagoblin
RUN chown -R www-data:www-data /opt/mediagoblin
@ -167,7 +173,8 @@ RUN make
RUN ./bin/pip install py3exiv2
# Run the tests.
RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
RUN echo foo
RUN ./bin/python -m pytest -rs ./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

@ -60,6 +60,15 @@ gstreamer1-plugin-openh264
# RUN apt-get install -y \
# poppler-utils
# Install raw image dependencies.
# TODO
# Install LDAP depedencies.
RUN dnf -y install python3-ldap
# Install OpenID dependencies.
RUN dnf -y install python3-openid
RUN groupadd www-data
RUN groupadd --system mediagoblin --gid 1024
RUN adduser www-data -g www-data -G mediagoblin
@ -73,14 +82,15 @@ RUN chown root:www-data /var/www
USER www-data
RUN git clone --depth=1 https://git.sr.ht/~mediagoblin/mediagoblin --branch ci .
RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git --branch master .
RUN git show --oneline --no-patch
RUN ./bootstrap.sh
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
RUN make
RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
RUN echo foo
RUN ./bin/python -m pytest -rs ./mediagoblin/tests --boxed
RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini

View File

@ -20,7 +20,7 @@ This plugin can be enabled alongside :ref:`basic_auth-chapter` and
Set up the OpenID plugin
============================
1. Install the ``python-openid`` package.
1. Install the ``python3-openid`` package.
2. Add the following to your MediaGoblin .ini file in the ``[plugins]`` section::

View File

@ -1 +0,0 @@
../../../docs/build/latex/GNUMediaGoblin.pdf

Binary file not shown.