diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml new file mode 100644 index 000000000..e19bca391 --- /dev/null +++ b/.woodpecker/.deploy.yml @@ -0,0 +1,35 @@ +pipeline: + upload-pypi: + group: deploy + image: openlp/debian + pull: true + commands: + - python3 setup.py sdist bdist_wheel + - twine upload dist/* + when: + repo: openlp/openlp + event: tag + branch: master + + # pages: + # group: deploy + # image: openlp/debian + # commands: + # - fixpaths linux.coverage + # - fixpaths macos.coverage + # - python3-coverage combine linux.coverage macos.coverage + # - python3-coverage html + # - mv htmlcov public + # - python3-coverage report + # artifacts: + # paths: + # - public + # expire_in: 30 days + # depends_on: + # - test-debian + # - test-macos + # only: + # - master@openlp/openlp + +depends_on: + - test diff --git a/.woodpecker/.lint.yml b/.woodpecker/.lint.yml new file mode 100644 index 000000000..96766a536 --- /dev/null +++ b/.woodpecker/.lint.yml @@ -0,0 +1,16 @@ +pipeline: + lint-python: + group: lint + image: openlp/debian + pull: true + commands: + - sh scripts/generate_resources.sh + - flake8 + + lint-javascript: + group: lint + image: openlp/angular + pull: true + commands: + - yarn install + - yarn lint diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml new file mode 100644 index 000000000..497584455 --- /dev/null +++ b/.woodpecker/.test.yml @@ -0,0 +1,58 @@ +pipeline: + test-debian: + image: openlp/debian + pull: true + commands: + - sh scripts/generate_resources.sh + - xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --cov openlp --cov-report term + - mv .coverage linux.coverage + # artifacts: + # paths: + # - linux.coverage + + test-ubuntu: + image: openlp/ubuntu + pull: true + commands: + - sh scripts/generate_resources.sh + - xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings + + test-fedora: + image: openlp/fedora + pull: true + commands: + - sh scripts/generate_resources.sh + - xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings + + test-arch: + image: openlp/arch + pull: true + commands: + - sh scripts/generate_resources.sh + - xvfb-run -s '-screen 0 1024x768x24' pytest --color=no --disable-warnings + + # test-macos: + # group: test + # tags: + # - macos + # commands: + # - export PATH=/opt/local/bin:$PATH + # - sh scripts/generate_resources.sh + # - python3 -m pytest --color=no --disable-warnings --cov openlp + # - mv .coverage macos.coverage + # artifacts: + # paths: + # - macos.coverage + # when: + # branch: master + # repo: openlp/openlp + + test-display: + image: openlp/angular + pull: true + commands: + - yarn install + - yarn test --browsers ChromiumHeadlessCI + +depends_on: + - lint diff --git a/tests/openlp_plugins/bibles/test_lib_http.py b/tests/openlp_plugins/bibles/test_lib_http.py index da3b7a9a4..b94258362 100644 --- a/tests/openlp_plugins/bibles/test_lib_http.py +++ b/tests/openlp_plugins/bibles/test_lib_http.py @@ -29,7 +29,7 @@ from openlp.core.common.registry import Registry from openlp.core.common.settings import Settings from openlp.plugins.bibles.lib.importers.http import BGExtract, BSExtract, CWExtract -IS_CI = 'GITLAB_CI' in os.environ or 'APPVEYOR' in os.environ +IS_CI = 'GITLAB_CI' in os.environ or 'APPVEYOR' in os.environ or 'CI' in os.environ @skipIf(IS_CI, 'Skip Bible HTTP tests to prevent GitLab CI from being blacklisted')