Update CI to use the GitLab container registry

This commit is contained in:
Raoul Snyman 2023-05-18 09:44:23 -07:00
parent f40ffd377f
commit e1865fd19f
1 changed files with 12 additions and 9 deletions

View File

@ -2,23 +2,26 @@ stages:
- test
- deploy
variables:
IMAGE_BASE: $CI_REGISTRY/openlp/runners
lint-python:
stage: test
image: openlp/debian
image: $IMAGE_BASE/debian
script:
- sh scripts/generate_resources.sh
- flake8
lint-javascript:
stage: test
image: openlp/angular
image: $IMAGE_BASE/angular
script:
- yarn install
- yarn lint
test-debian:
stage: test
image: openlp/debian
image: $IMAGE_BASE/debian
script:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings --cov openlp --cov-report term
@ -29,21 +32,21 @@ test-debian:
test-ubuntu:
stage: test
image: openlp/ubuntu
image: $IMAGE_BASE/ubuntu
script:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
test-fedora:
stage: test
image: openlp/fedora
image: $IMAGE_BASE/fedora
script:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest-3 --color=no --disable-warnings
test-arch:
stage: test
image: openlp/arch
image: $IMAGE_BASE/arch
script:
- sh scripts/generate_resources.sh
- xvfb-run -s '-screen 0 1024x768x24' pytest --color=no --disable-warnings
@ -65,14 +68,14 @@ test-macos:
test-display:
stage: test
image: openlp/angular
image: $IMAGE_BASE/angular
script:
- yarn install
- yarn test --browsers ChromiumHeadlessCI
upload-pypi:
stage: deploy
image: openlp/debian
image: $IMAGE_BASE/debian
script:
- python3 setup.py sdist bdist_wheel
- twine upload dist/*
@ -81,7 +84,7 @@ upload-pypi:
pages:
stage: deploy
image: openlp/debian
image: $IMAGE_BASE/debian
script:
- fixpaths linux.coverage
- fixpaths macos.coverage