blueprint-compiler/.gitlab-ci.yml
James Westman 9c5e697119
ci: Lock regression test repo to a specific commit
That way, changes to blueprint-regression-tests don't break CI for
unrelated commits (they should instead break the commit that updates
this `git checkout` line).
2022-06-09 00:07:13 -05:00

56 lines
1.1 KiB
YAML

stages:
- build
- pages
build:
image: registry.gitlab.gnome.org/jwestman/blueprint-compiler
stage: build
script:
- mypy blueprintcompiler
- coverage run -m unittest
- coverage report
- 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
- git checkout dba20ee77b0ba711893726208a0523073fc697e3
- ./test.sh
- cd ..
coverage: '/TOTAL.*\s([.\d]+)%/'
artifacts:
paths:
- _build
- htmlcov
reports:
cobertura: coverage.xml
fuzz:
image: registry.gitlab.gnome.org/jwestman/blueprint-compiler
stage: build
allow_failure: true
script:
- meson _build
- ninja -C _build install
- ./tests/fuzz.sh 5000
artifacts:
when: always
paths:
- corpus
- crashes
pages:
stage: pages
dependencies:
- build
script:
- mv _build/docs/en public
- mv htmlcov public/coverage
artifacts:
paths:
- public
only:
- main