Compare commits

...

9 Commits

Author SHA1 Message Date
Raoul Snyman 47c36fac8d
Make things run in parallel
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/test Pipeline failed Details
ci/woodpecker/push/deploy unknown status Details
2022-05-03 14:55:45 -07:00
Raoul Snyman de2b52943e
Apparently we need to clone
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/test Pipeline failed Details
ci/woodpecker/push/deploy unknown status Details
2022-05-03 14:41:11 -07:00
Raoul Snyman d73b38a8a9
Make things run in parallel
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/test Pipeline failed Details
2022-05-03 14:37:00 -07:00
Raoul Snyman d8e80c9356
Fix typo 2022-05-03 14:32:58 -07:00
Raoul Snyman 2b40357cae
skip clone on subsequent steps
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/test Pipeline failed Details
ci/woodpecker/push/deploy unknown status Details
2022-05-03 14:32:03 -07:00
Raoul Snyman e53f7d42b8
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
2022-05-03 14:24:28 -07:00
Raoul Snyman 7d3b00753d
Add some depends 2022-05-03 14:18:58 -07:00
Raoul Snyman 9b794af8fa
Force pull
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-05-03 13:58:02 -07:00
Raoul Snyman cc6ddff9bc
Add config for Woodpecker CI 2022-05-03 13:54:31 -07:00
3 changed files with 113 additions and 0 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

62
.woodpecker/.test.yml Normal file
View File

@ -0,0 +1,62 @@
pipeline:
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
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
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
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
# 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