image: fedora/33
packages:
  # Install bootstrap and configure dependencies.
  - automake
  # - gcc
  # - make
  - nodejs
  - npm
  - python3-devel
  - virtualenv
  
  # Install make and runtime dependencies.
  # - findutils
  - python3-alembic
  - python3-celery
  - python3-jsonschema
  - python3-kombu
  - python3-lxml
  - python3-migrate
  - python3-pillow
  - python3-py
  - python3-pytest
  - python3-pytest-xdist
  - python3-snowballstemmer
  - python3-sphinx
  - python3-webtest
  - libffi-devel
  # - which

  # Install audio dependencies.
  - gstreamer1-plugins-base
  - gstreamer1-plugins-bad-free
  - gstreamer1-plugins-good
  - gstreamer1-plugins-ugly-free
  - python3-numpy

  # Install video dependencies.
  - python3-gobject
  - python3-gstreamer1
  -  gstreamer1-plugin-openh264
  
  # # Install raw image dependencies.
  # - libexiv2-dev
  # - libboost-python-dev

  # # Install document (PDF-only) dependencies.
  # - poppler-utils

  # Install LDAP depedencies.
  - python3-ldap

  # Install OpenID dependencies.
  - python3-openid
  
tasks:
  - core: |
      cd mediagoblin
      git show --oneline --no-patch
      ./bootstrap.sh
      VIRTUALENV_FLAGS='--system-site-packages' ./configure
      make

      # # Install raw image library from PyPI as not available in Debian 10.
      # ./bin/pip install py3exiv2

      # Run the tests, explicitly listing out skipped tests.
      ./bin/python -m pytest -rs ./mediagoblin/tests --boxed
