2019-09-17 05:20:23 +00:00
|
|
|
stages:
|
|
|
|
- test
|
2019-10-10 15:26:56 +00:00
|
|
|
- deploy
|
2019-09-17 05:20:23 +00:00
|
|
|
|
2023-05-18 16:44:23 +00:00
|
|
|
variables:
|
|
|
|
IMAGE_BASE: $CI_REGISTRY/openlp/runners
|
|
|
|
|
2019-10-23 20:09:37 +00:00
|
|
|
lint-python:
|
2019-10-26 17:59:24 +00:00
|
|
|
stage: test
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/debian
|
2019-09-18 16:44:39 +00:00
|
|
|
script:
|
2019-10-23 20:09:37 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
2019-09-18 16:44:39 +00:00
|
|
|
- flake8
|
|
|
|
|
2019-10-23 20:09:37 +00:00
|
|
|
lint-javascript:
|
2019-10-26 17:59:24 +00:00
|
|
|
stage: test
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/angular
|
2019-10-23 20:09:37 +00:00
|
|
|
script:
|
|
|
|
- yarn install
|
|
|
|
- yarn lint
|
|
|
|
|
2019-09-17 05:20:23 +00:00
|
|
|
test-debian:
|
|
|
|
stage: test
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/debian
|
2019-09-17 05:20:23 +00:00
|
|
|
script:
|
2019-10-23 20:09:37 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
2023-12-07 17:47:53 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --cov openlp --cov-report term --cov-report xml:coverage.xml
|
2019-10-11 18:48:27 +00:00
|
|
|
- mv .coverage linux.coverage
|
2023-12-07 17:47:53 +00:00
|
|
|
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
2019-10-10 15:26:56 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-10-11 18:48:27 +00:00
|
|
|
- linux.coverage
|
2023-12-07 17:47:53 +00:00
|
|
|
reports:
|
|
|
|
coverage_report:
|
|
|
|
coverage_format: cobertura
|
|
|
|
path: coverage.xml
|
2019-09-17 05:20:23 +00:00
|
|
|
|
|
|
|
test-ubuntu:
|
|
|
|
stage: test
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/ubuntu
|
2019-09-17 05:20:23 +00:00
|
|
|
script:
|
2019-10-23 20:09:37 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
2019-10-18 16:54:00 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
|
2019-09-17 05:20:23 +00:00
|
|
|
|
|
|
|
test-fedora:
|
|
|
|
stage: test
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/fedora
|
2019-09-17 05:20:23 +00:00
|
|
|
script:
|
2019-10-23 20:09:37 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
2019-10-18 16:54:00 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
|
2019-09-17 05:20:23 +00:00
|
|
|
|
2019-10-06 06:09:33 +00:00
|
|
|
test-arch:
|
|
|
|
stage: test
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/arch
|
2019-10-06 06:09:33 +00:00
|
|
|
script:
|
2019-10-23 20:09:37 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
2019-10-18 16:54:00 +00:00
|
|
|
- xvfb-run -s '-screen 0 1024x768x24' pytest --color=no --disable-warnings
|
2019-10-06 06:09:33 +00:00
|
|
|
|
2023-06-01 03:21:14 +00:00
|
|
|
test-macos-intel:
|
2019-09-17 05:20:23 +00:00
|
|
|
stage: test
|
|
|
|
tags:
|
2023-06-01 03:21:14 +00:00
|
|
|
- apple-amd64
|
|
|
|
script:
|
|
|
|
- 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
|
|
|
|
only:
|
|
|
|
- master@openlp/openlp
|
|
|
|
|
|
|
|
test-macos-arm:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- apple-arm
|
2019-10-23 20:09:37 +00:00
|
|
|
script:
|
2019-09-19 08:52:59 +00:00
|
|
|
- export PATH=/opt/local/bin:$PATH
|
2019-09-17 05:20:23 +00:00
|
|
|
- sh scripts/generate_resources.sh
|
2023-06-06 14:42:10 +00:00
|
|
|
- python3 -m pytest --color=no --disable-warnings
|
2019-09-19 08:52:59 +00:00
|
|
|
only:
|
|
|
|
- master@openlp/openlp
|
2019-10-10 15:26:56 +00:00
|
|
|
|
2019-10-23 20:09:37 +00:00
|
|
|
test-display:
|
|
|
|
stage: test
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/angular
|
2019-10-23 20:09:37 +00:00
|
|
|
script:
|
|
|
|
- yarn install
|
|
|
|
- yarn test --browsers ChromiumHeadlessCI
|
|
|
|
|
2020-04-24 06:39:53 +00:00
|
|
|
upload-pypi:
|
|
|
|
stage: deploy
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/debian
|
2020-04-24 06:39:53 +00:00
|
|
|
script:
|
|
|
|
- python3 setup.py sdist bdist_wheel
|
|
|
|
- twine upload dist/*
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
|
2019-10-10 15:26:56 +00:00
|
|
|
pages:
|
|
|
|
stage: deploy
|
2023-05-18 16:44:23 +00:00
|
|
|
image: $IMAGE_BASE/debian
|
2019-10-10 15:26:56 +00:00
|
|
|
script:
|
2020-09-28 18:28:57 +00:00
|
|
|
- fixpaths linux.coverage
|
|
|
|
- fixpaths macos.coverage
|
2019-12-04 18:15:24 +00:00
|
|
|
- python3-coverage combine linux.coverage macos.coverage
|
2019-10-11 18:48:27 +00:00
|
|
|
- python3-coverage html
|
2019-10-10 15:26:56 +00:00
|
|
|
- mv htmlcov public
|
2023-12-07 17:47:53 +00:00
|
|
|
- python3-coverage xml
|
|
|
|
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
2019-10-10 15:26:56 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
expire_in: 30 days
|
2023-12-07 17:47:53 +00:00
|
|
|
reports:
|
|
|
|
coverage_report:
|
|
|
|
coverage_format: cobertura
|
|
|
|
path: coverage.xml
|
2019-10-10 15:26:56 +00:00
|
|
|
dependencies:
|
|
|
|
- test-debian
|
2023-06-06 14:42:10 +00:00
|
|
|
- test-macos-intel
|
2019-10-10 15:26:56 +00:00
|
|
|
only:
|
|
|
|
- master@openlp/openlp
|