condorcore-keyring/.gitlab-ci.yml
Levente Polyak 2d0ccd069c
gitlab: invoke ci target for advanced checks on new keys
This invokes the dedicated ci keyringctl command that is responsible
to check with sq-keyring-linter and hokey when completely unknown
new keys are added to the keyring.
2022-01-13 21:10:51 +01:00

71 lines
1.3 KiB
YAML

---
image: archlinux:latest
stages:
- test
lint:
stage: test
needs: []
before_script:
- pacman -Syu --needed --noconfirm make flake8 mypy python-black python-isort
script:
- make lint
only:
changes:
- keyringctl
- libkeyringctl/*
- tests/*
- .gitlab-ci.yml
- Makefile
test:
stage: test
needs: []
before_script:
- pacman -Syu --needed --noconfirm make python sequoia-sq python-coverage python-pytest python-tomli
script:
- make test
only:
changes:
- keyringctl
- libkeyringctl/*
- tests/*
- .gitlab-ci.yml
- Makefile
artifacts:
when: always
reports:
junit: build/junit-report.xml
cobertura: build/coverage.xml
build_install:
stage: test
needs: []
before_script:
- pacman -Syu --needed --noconfirm make python sequoia-sq
script:
- make
- make install PREFIX=/usr
- pacman-key --init
- pacman-key --populate archlinux
- pacman-key --updatedb
- pacman -Syu
keyring_check:
stage: test
needs: []
before_script:
- pacman -Syu --needed --noconfirm make python sequoia-sq git
script:
- ./keyringctl check
- ./keyringctl ci
only:
changes:
- keyring/**/*
- keyringctl
- libkeyringctl/*
- tests/*
- .gitlab-ci.yml
- Makefile