openlp/.gitlab-ci.yml

100 lines
2.0 KiB
YAML
Raw Normal View History

2019-09-17 05:20:23 +00:00
stages:
- test
- deploy
2019-09-17 05:20:23 +00:00
lint-python:
2019-10-26 17:59:24 +00:00
stage: test
image: openlp/debian
2019-09-18 16:44:39 +00:00
script:
- sh scripts/generate_resources.sh
2019-09-18 16:44:39 +00:00
- flake8
lint-javascript:
2019-10-26 17:59:24 +00:00
stage: test
image: openlp/angular
script:
- yarn install
- yarn lint
2019-09-17 05:20:23 +00:00
test-debian:
stage: test
image: openlp/debian
2019-09-17 05:20:23 +00:00
script:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --cov openlp --cov-report term
2019-10-11 18:48:27 +00:00
- mv .coverage linux.coverage
artifacts:
paths:
2019-10-11 18:48:27 +00:00
- linux.coverage
2019-09-17 05:20:23 +00:00
test-ubuntu:
stage: test
image: openlp/ubuntu
2019-09-17 05:20:23 +00:00
script:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
2019-09-17 05:20:23 +00:00
test-fedora:
stage: test
image: openlp/fedora
2019-09-17 05:20:23 +00:00
script:
- sh scripts/generate_resources.sh
- 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
image: openlp/arch
script:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest --color=no --disable-warnings
2019-10-06 06:09:33 +00:00
2019-09-17 05:20:23 +00:00
test-macos:
stage: test
tags:
- macos
script:
- export PATH=/opt/local/bin:$PATH
2019-09-17 05:20:23 +00:00
- sh scripts/generate_resources.sh
2019-10-11 18:48:27 +00:00
- python3 -m pytest --color=no --disable-warnings --cov openlp
- mv .coverage macos.coverage
artifacts:
paths:
- macos.coverage
only:
- master@openlp/openlp
test-display:
stage: test
image: openlp/angular
script:
- yarn install
- yarn test --browsers ChromiumHeadlessCI
upload-pypi:
stage: deploy
image: openlp/debian
script:
- python3 setup.py sdist bdist_wheel
- twine upload dist/*
only:
- tags
pages:
stage: deploy
2019-10-11 18:48:27 +00:00
image: openlp/debian
script:
- python3-coverage combine linux.coverage macos.coverage
- fixpaths .coverage
2019-10-11 18:48:27 +00:00
- python3-coverage html
- mv htmlcov public
2019-10-11 18:48:27 +00:00
- python3-coverage report
artifacts:
paths:
- public
expire_in: 30 days
dependencies:
- test-debian
2019-10-11 18:48:27 +00:00
- test-macos
only:
- master@openlp/openlp