condorcore-keyring/.gitlab-ci.yml
David Runge b9bbe3f1d4
Also trigger tests and linting on changes to CI
.gitlab-ci.yml:
Also trigger tests and linting on changes to .gitlab-ci.yml.
2021-11-30 22:54:14 +01:00

49 lines
964 B
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/*
- test/*
- .gitlab-ci.yml
test:
stage: test
needs: []
before_script:
- pacman -Syu --needed --noconfirm make python sequoia-sq python-coverage python-pytest
script:
- make test
only:
changes:
- keyringctl
- libkeyringctl/*
- test/*
- .gitlab-ci.yml
build_install:
stage: test
needs: []
before_script:
- pacman -Syu --needed --noconfirm make python sequoia-sq
script:
- ./keyringctl import --main master master-revoked
- ./keyringctl import packager packager-revoked
- make
- make install PREFIX=/usr
- pacman-key --init
- pacman-key --populate archlinux
- pacman-key --updatedb
- pacman -Syu