2021-10-16 18:03:44 -05:00
|
|
|
---
|
2021-04-29 16:58:47 -05:00
|
|
|
image: archlinux:latest
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- lint
|
2021-10-16 18:03:44 -05:00
|
|
|
- integration
|
2021-04-29 16:58:47 -05:00
|
|
|
|
|
|
|
variables:
|
|
|
|
PACMAN_CACHE: "${CI_PROJECT_DIR}/.pacman/pkg"
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .pacman/pkg
|
|
|
|
key: ${CI_JOB_NAME}
|
|
|
|
|
|
|
|
check-new-key:
|
|
|
|
stage: lint
|
|
|
|
needs: []
|
|
|
|
script:
|
|
|
|
- install -d "${PACMAN_CACHE}"
|
|
|
|
- pacman -Syu --needed --noconfirm --cachedir "${PACMAN_CACHE}" git grep hopenpgp-tools sequoia-keyring-linter
|
|
|
|
- ./.gitlab/check-keyids-change
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- merge_requests
|
|
|
|
changes:
|
|
|
|
- master-keyids
|
|
|
|
- packager-keyids
|
2021-10-16 18:03:44 -05:00
|
|
|
|
|
|
|
lint:
|
|
|
|
stage: lint
|
|
|
|
before_script:
|
|
|
|
- install -d "${PACMAN_CACHE}"
|
|
|
|
- pacman -Syu --needed --noconfirm --cachedir "${PACMAN_CACHE}" make flake8 mypy python-black python-isort
|
|
|
|
script:
|
|
|
|
- make lint
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- merge_requests
|
|
|
|
changes:
|
|
|
|
- keyringctl
|
|
|
|
|
|
|
|
build_install:
|
|
|
|
stage: integration
|
|
|
|
before_script:
|
|
|
|
- install -d "${PACMAN_CACHE}"
|
|
|
|
- pacman -Syu --needed --noconfirm --cachedir "${PACMAN_CACHE}" make python sequoia-sq
|
|
|
|
script:
|
|
|
|
- ./keyringctl import-main master/
|
|
|
|
- ./keyringctl import-main master-revoked/
|
|
|
|
- ./keyringctl import-packager packager/
|
|
|
|
- ./keyringctl import-packager packager-revoked/
|
|
|
|
- make
|
|
|
|
- make install PREFIX=/usr
|
|
|
|
- pacman-key --init
|
|
|
|
- pacman-key --populate archlinux
|
|
|
|
- pacman-key --updatedb
|
|
|
|
- pacman -Syu
|