openlp/.woodpecker.yml

119 lines
2.6 KiB
YAML

pipeline:
lint-python:
group: test
image: openlp/debian
pull: true
commands:
- sh scripts/generate_resources.sh
- flake8
lint-javascript:
group: test
image: openlp/angular
pull: true
commands:
- yarn install
- yarn lint
test-debian:
group: test
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
depends_on:
- lint-python
test-ubuntu:
group: test
image: openlp/ubuntu
pull: true
commands:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
depends_on:
- lint-python
test-fedora:
group: test
image: openlp/fedora
pull: true
commands:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
depends_on:
- lint-python
test-arch:
group: test
image: openlp/arch
pull: true
commands:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest --color=no --disable-warnings
depends_on:
- lint-python
# 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:
group: test
image: openlp/angular
pull: true
commands:
- yarn install
- yarn test --browsers ChromiumHeadlessCI
depends_on:
- lint-javascript
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