forked from openlp/openlp
Move to multi-pipeline approach
This commit is contained in:
parent
7d3b00753d
commit
e53f7d42b8
35
.woodpecker/.deploy.yml
Normal file
35
.woodpecker/.deploy.yml
Normal 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
16
.woodpecker/.lint.yml
Normal 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
|
@ -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
|
||||
- lint
|
Loading…
Reference in New Issue
Block a user