blueprint-compiler/.gitlab-ci.yml
2022-01-16 22:34:36 -06:00

39 lines
755 B
YAML

stages:
- build
- pages
build:
image: registry.gitlab.gnome.org/jwestman/blueprint-compiler
stage: build
script:
- 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