2019-09-17 05:20:23 +00:00
|
|
|
stages:
|
2019-09-18 16:44:39 +00:00
|
|
|
- lint
|
2019-09-17 05:20:23 +00:00
|
|
|
- test
|
|
|
|
|
2019-09-18 16:44:39 +00:00
|
|
|
lint:
|
|
|
|
stage: lint
|
|
|
|
image: python
|
|
|
|
before_script:
|
|
|
|
- apt-get update
|
|
|
|
# packages required for dbus-python
|
|
|
|
- apt-get -y install libdbus-1-dev libdbus-glib-1-dev
|
|
|
|
# packages required for pyodbc
|
|
|
|
- apt-get -y install unixodbc unixodbc-dev
|
|
|
|
- pip install -e .[test]
|
|
|
|
script:
|
|
|
|
- flake8
|
|
|
|
|
2019-09-17 05:20:23 +00:00
|
|
|
test-debian:
|
|
|
|
stage: test
|
2019-09-17 20:18:08 +00:00
|
|
|
variables:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
image: debian:unstable
|
2019-09-17 05:20:23 +00:00
|
|
|
before_script:
|
2019-09-17 20:18:08 +00:00
|
|
|
- apt-get update
|
2019-09-18 18:29:05 +00:00
|
|
|
- apt-get install -y python3 qttools5-dev-tools pyqt5-dev-tools python3-pyqt5 python3-pyqt5.qtmultimedia
|
|
|
|
python3-pyqt5.qtsvg python3-pyqt5.qtopengl python3-pyqt5.qtwebchannel python3-pyqt5.qtwebkit
|
|
|
|
python3-pyqt5.qtwebengine python3-dbus.mainloop.pyqt5 python3-sqlalchemy python3-alembic
|
|
|
|
python3-chardet python3-lxml python3-enchant python3-bs4 python3-mako python3-uno
|
|
|
|
python3-pytest python3-pytest-cov python3-websockets python3-webob python3-waitress
|
|
|
|
python3-requests python3-pymediainfo python3-qtawesome python3-opengl python3-appdirs
|
|
|
|
python3-vlc python3-zeroconf python3-pip python3-pep8 mediainfo mupdf-tools xvfb
|
2019-09-17 05:20:23 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
|
|
|
script:
|
2019-09-18 18:29:05 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 -Wignore --ignore tests/functional/openlp_plugins/presentations/test_pdfcontroller.py
|
2019-09-17 05:20:23 +00:00
|
|
|
|
|
|
|
test-ubuntu:
|
|
|
|
stage: test
|
2019-09-17 20:18:08 +00:00
|
|
|
variables:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
image: ubuntu:rolling
|
2019-09-17 05:20:23 +00:00
|
|
|
before_script:
|
2019-09-17 20:18:08 +00:00
|
|
|
- apt-get update
|
2019-09-18 18:29:05 +00:00
|
|
|
- apt-get install -y python3 qttools5-dev-tools pyqt5-dev-tools python3-pyqt5 python3-pyqt5.qtmultimedia
|
|
|
|
python3-pyqt5.qtsvg python3-pyqt5.qtopengl python3-pyqt5.qtwebchannel python3-pyqt5.qtwebkit
|
|
|
|
python3-pyqt5.qtwebengine python3-dbus.mainloop.pyqt5 python3-sqlalchemy python3-alembic
|
|
|
|
python3-chardet python3-lxml python3-enchant python3-bs4 python3-mako python3-uno
|
|
|
|
python3-pytest python3-pytest-cov python3-websockets python3-webob python3-waitress
|
|
|
|
python3-requests python3-pymediainfo python3-qtawesome python3-opengl python3-appdirs
|
|
|
|
python3-vlc python3-zeroconf python3-pip python3-pep8 mediainfo mupdf-tools xvfb
|
2019-09-17 05:20:23 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
|
|
|
script:
|
2019-09-18 18:29:05 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 -Wignore --ignore tests/functional/openlp_plugins/presentations/test_pdfcontroller.py
|
2019-09-17 05:20:23 +00:00
|
|
|
|
|
|
|
test-fedora:
|
|
|
|
stage: test
|
2019-09-17 20:18:08 +00:00
|
|
|
image: fedora
|
2019-09-17 05:20:23 +00:00
|
|
|
before_script:
|
2019-09-18 18:29:05 +00:00
|
|
|
- dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
|
2019-09-17 20:18:08 +00:00
|
|
|
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
2019-09-18 18:29:05 +00:00
|
|
|
- dnf install -y python3-PyQt5 python3-qt5-webkit python3-qt5-webengine python3-sqlalchemy python3-alembic
|
|
|
|
python3-beautifulsoup4 python3-chardet python3-enchant python3-lxml python3-pyxdg python3-pytest
|
|
|
|
python3-websockets python3-appdirs python3-webob python3-QtAwesome python3-waitress python3-vlc
|
|
|
|
python3-pymediainfo python3-pyopengl python-pysword python3-requests python3-zeroconf mediainfo
|
|
|
|
patch xorg-x11-server-Xvfb ghostscript mupdf
|
2019-09-17 05:20:23 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
|
|
|
script:
|
2019-09-18 18:29:05 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 -Wignore --ignore tests/functional/openlp_plugins/presentations/test_pdfcontroller.py
|
2019-09-17 05:20:23 +00:00
|
|
|
|
|
|
|
test-macos:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- macos
|
|
|
|
before_script:
|
2019-09-19 08:52:59 +00:00
|
|
|
- export PATH=/opt/local/bin:$PATH
|
2019-09-17 05:20:23 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
|
|
|
script:
|
|
|
|
- python3 -m pytest -v --color=no --disable-warnings --ignore=tests/utils
|
2019-09-19 08:52:59 +00:00
|
|
|
only:
|
|
|
|
- master@openlp/openlp
|