Run LDAP, OpenID and PDF tests under Docker.
This commit is contained in:
parent
95be20a936
commit
3ba11716c1
@ -43,7 +43,13 @@ packages:
|
|||||||
|
|
||||||
# Install document (PDF-only) dependencies.
|
# Install document (PDF-only) dependencies.
|
||||||
- poppler-utils
|
- poppler-utils
|
||||||
|
|
||||||
|
# Install LDAP depedencies.
|
||||||
|
- python3-ldap
|
||||||
|
|
||||||
|
# Install OpenID dependencies.
|
||||||
|
- python3-openid
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- core: |
|
- core: |
|
||||||
cd mediagoblin
|
cd mediagoblin
|
||||||
|
@ -45,6 +45,12 @@ packages:
|
|||||||
|
|
||||||
# # Install document (PDF-only) dependencies.
|
# # Install document (PDF-only) dependencies.
|
||||||
# - poppler-utils
|
# - poppler-utils
|
||||||
|
|
||||||
|
# Install LDAP depedencies.
|
||||||
|
- python3-ldap
|
||||||
|
|
||||||
|
# Install OpenID dependencies.
|
||||||
|
- python3-openid
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- core: |
|
- core: |
|
||||||
|
@ -112,6 +112,12 @@ libboost-python-dev
|
|||||||
RUN apt-get install -y \
|
RUN apt-get install -y \
|
||||||
poppler-utils
|
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.
|
# Create working directory.
|
||||||
RUN mkdir /opt/mediagoblin
|
RUN mkdir /opt/mediagoblin
|
||||||
RUN chown -R www-data:www-data /opt/mediagoblin
|
RUN chown -R www-data:www-data /opt/mediagoblin
|
||||||
@ -167,7 +173,8 @@ RUN make
|
|||||||
RUN ./bin/pip install py3exiv2
|
RUN ./bin/pip install py3exiv2
|
||||||
|
|
||||||
# Run the tests.
|
# 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
|
# Only safe if being run on a clean git checkout. Otherwise you may have already
|
||||||
# customised mediagoblin.ini to already install these.
|
# customised mediagoblin.ini to already install these.
|
||||||
|
@ -60,6 +60,15 @@ gstreamer1-plugin-openh264
|
|||||||
# RUN apt-get install -y \
|
# RUN apt-get install -y \
|
||||||
# poppler-utils
|
# 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 www-data
|
||||||
RUN groupadd --system mediagoblin --gid 1024
|
RUN groupadd --system mediagoblin --gid 1024
|
||||||
RUN adduser www-data -g www-data -G mediagoblin
|
RUN adduser www-data -g www-data -G mediagoblin
|
||||||
@ -73,14 +82,15 @@ RUN chown root:www-data /var/www
|
|||||||
|
|
||||||
USER www-data
|
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 git show --oneline --no-patch
|
||||||
|
|
||||||
RUN ./bootstrap.sh
|
RUN ./bootstrap.sh
|
||||||
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
|
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
|
||||||
RUN make
|
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.audio]]' >> mediagoblin.ini
|
||||||
RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
|
RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
|
||||||
|
@ -20,7 +20,7 @@ This plugin can be enabled alongside :ref:`basic_auth-chapter` and
|
|||||||
Set up the OpenID plugin
|
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::
|
2. Add the following to your MediaGoblin .ini file in the ``[plugins]`` section::
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../../../docs/build/latex/GNUMediaGoblin.pdf
|
|
BIN
mediagoblin/tests/test_submission/good.pdf
Normal file
BIN
mediagoblin/tests/test_submission/good.pdf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user