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:
|
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:
|
test-debian:
|
||||||
group: test
|
group: test
|
||||||
image: openlp/debian
|
image: openlp/debian
|
||||||
@ -26,8 +10,6 @@ pipeline:
|
|||||||
# artifacts:
|
# artifacts:
|
||||||
# paths:
|
# paths:
|
||||||
# - linux.coverage
|
# - linux.coverage
|
||||||
depends_on:
|
|
||||||
- lint-python
|
|
||||||
|
|
||||||
test-ubuntu:
|
test-ubuntu:
|
||||||
group: test
|
group: test
|
||||||
@ -36,8 +18,6 @@ pipeline:
|
|||||||
commands:
|
commands:
|
||||||
- sh scripts/generate_resources.sh
|
- sh scripts/generate_resources.sh
|
||||||
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
|
||||||
depends_on:
|
|
||||||
- lint-python
|
|
||||||
|
|
||||||
test-fedora:
|
test-fedora:
|
||||||
group: test
|
group: test
|
||||||
@ -46,8 +26,6 @@ pipeline:
|
|||||||
commands:
|
commands:
|
||||||
- sh scripts/generate_resources.sh
|
- sh scripts/generate_resources.sh
|
||||||
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
|
||||||
depends_on:
|
|
||||||
- lint-python
|
|
||||||
|
|
||||||
test-arch:
|
test-arch:
|
||||||
group: test
|
group: test
|
||||||
@ -56,8 +34,6 @@ pipeline:
|
|||||||
commands:
|
commands:
|
||||||
- sh scripts/generate_resources.sh
|
- sh scripts/generate_resources.sh
|
||||||
- xvfb-run -s '-screen 0 1024x768x24' pytest --color=no --disable-warnings
|
- xvfb-run -s '-screen 0 1024x768x24' pytest --color=no --disable-warnings
|
||||||
depends_on:
|
|
||||||
- lint-python
|
|
||||||
|
|
||||||
# test-macos:
|
# test-macos:
|
||||||
# group: test
|
# group: test
|
||||||
@ -82,37 +58,6 @@ pipeline:
|
|||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn test --browsers ChromiumHeadlessCI
|
- yarn test --browsers ChromiumHeadlessCI
|
||||||
depends_on:
|
|
||||||
- lint-javascript
|
|
||||||
|
|
||||||
upload-pypi:
|
depends_on:
|
||||||
group: deploy
|
- lint
|
||||||
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
|
|
Loading…
Reference in New Issue
Block a user