Move to multi-pipeline approach
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/test Pipeline failed Details
ci/woodpecker/push/deploy unknown status Details

This commit is contained in:
Raoul Snyman 2022-05-03 14:24:28 -07:00
parent 7d3b00753d
commit e53f7d42b8
Signed by: raoul
GPG Key ID: F55BCED79626AE9C
3 changed files with 53 additions and 57 deletions

35
.woodpecker/.deploy.yml Normal file
View File

@ -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

16
.woodpecker/.lint.yml Normal file
View File

@ -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

View File

@ -1,20 +1,4 @@
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
@ -26,8 +10,6 @@ pipeline:
# artifacts:
# paths:
# - linux.coverage
depends_on:
- lint-python
test-ubuntu:
group: test
@ -36,8 +18,6 @@ pipeline:
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
@ -46,8 +26,6 @@ pipeline:
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
@ -56,8 +34,6 @@ pipeline:
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
@ -82,37 +58,6 @@ pipeline:
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
depends_on:
- lint