blueprint-compiler/.gitlab-ci.yml
2022-02-23 14:40:18 -06:00

40 lines
777 B
YAML

stages:
- build
- pages
build:
image: registry.gitlab.gnome.org/jwestman/blueprint-compiler
stage: build
script:
- black --check .
- mypy blueprintcompiler
- coverage run -m unittest
- coverage html
- coverage xml
- meson _build -Ddocs=true
- ninja -C _build
- ninja -C _build test
- ninja -C _build install
- git clone https://gitlab.gnome.org/jwestman/blueprint-regression-tests.git
- cd blueprint-regression-tests
- ./test.sh
- cd ..
artifacts:
paths:
- _build
- htmlcov
reports:
cobertura: coverage.xml
pages:
stage: pages
dependencies:
- build
script:
- mv _build/docs/en public
- mv htmlcov public/coverage
artifacts:
paths:
- public
only:
- main