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
|
2019-09-26 16:54:38 +00:00
|
|
|
image: openlp/debian
|
2019-09-18 16:44:39 +00:00
|
|
|
before_script:
|
2019-09-26 16:54:38 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
2019-09-18 16:44:39 +00:00
|
|
|
script:
|
|
|
|
- flake8
|
|
|
|
|
2019-09-17 05:20:23 +00:00
|
|
|
test-debian:
|
|
|
|
stage: test
|
2019-09-26 16:54:38 +00:00
|
|
|
image: openlp/debian
|
2019-09-17 05:20:23 +00:00
|
|
|
before_script:
|
|
|
|
- sh scripts/generate_resources.sh
|
|
|
|
script:
|
2019-09-26 16:54:38 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --ignore tests/functional/openlp_plugins/presentations/test_pdfcontroller.py --cov openlp --cov-report term --cov-report html
|
2019-09-17 05:20:23 +00:00
|
|
|
|
|
|
|
test-ubuntu:
|
|
|
|
stage: test
|
2019-09-26 16:54:38 +00:00
|
|
|
image: openlp/ubuntu
|
2019-09-17 05:20:23 +00:00
|
|
|
before_script:
|
|
|
|
- sh scripts/generate_resources.sh
|
|
|
|
script:
|
2019-09-26 16:54:38 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --ignore tests/functional/openlp_plugins/presentations/test_pdfcontroller.py
|
2019-09-17 05:20:23 +00:00
|
|
|
|
|
|
|
test-fedora:
|
|
|
|
stage: test
|
2019-09-26 16:54:38 +00:00
|
|
|
image: openlp/fedora
|
2019-09-17 05:20:23 +00:00
|
|
|
before_script:
|
|
|
|
- sh scripts/generate_resources.sh
|
|
|
|
script:
|
2019-09-26 16:54:38 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --ignore tests/functional/openlp_plugins/presentations/test_pdfcontroller.py
|
2019-09-17 05:20:23 +00:00
|
|
|
|
2019-10-06 06:09:33 +00:00
|
|
|
test-arch:
|
|
|
|
stage: test
|
|
|
|
image: openlp/arch
|
|
|
|
before_script:
|
|
|
|
- sh scripts/generate_resources.sh
|
|
|
|
script:
|
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest --color=no --disable-warnings --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:
|
2019-09-26 16:54:38 +00:00
|
|
|
- python3 -m pytest --color=no --disable-warnings
|
2019-09-19 08:52:59 +00:00
|
|
|
only:
|
|
|
|
- master@openlp/openlp
|