2021-10-16 18:03:44 -05:00
|
|
|
---
|
2021-04-29 16:58:47 -05:00
|
|
|
image: archlinux:latest
|
|
|
|
|
|
|
|
stages:
|
2021-10-31 11:53:20 -06:00
|
|
|
- test
|
2021-04-29 16:58:47 -05:00
|
|
|
|
2021-10-31 11:53:20 -06:00
|
|
|
lint:
|
|
|
|
stage: test
|
2021-04-29 16:58:47 -05:00
|
|
|
needs: []
|
2021-10-31 11:53:20 -06:00
|
|
|
before_script:
|
|
|
|
- pacman -Syu --needed --noconfirm make flake8 mypy python-black python-isort
|
2021-04-29 16:58:47 -05:00
|
|
|
script:
|
2021-10-31 11:53:20 -06:00
|
|
|
- make lint
|
2021-04-29 16:58:47 -05:00
|
|
|
only:
|
|
|
|
changes:
|
2021-10-31 11:53:20 -06:00
|
|
|
- keyringctl
|
|
|
|
- libkeyringctl/*
|
2021-11-01 11:36:02 -06:00
|
|
|
- tests/*
|
2021-10-31 15:25:09 -06:00
|
|
|
- .gitlab-ci.yml
|
2021-11-01 11:36:02 -06:00
|
|
|
- Makefile
|
2021-10-16 18:03:44 -05:00
|
|
|
|
2021-10-31 11:53:20 -06:00
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
needs: []
|
2021-10-16 18:03:44 -05:00
|
|
|
before_script:
|
2021-11-07 15:30:37 -06:00
|
|
|
- pacman -Syu --needed --noconfirm make python sequoia-sq python-coverage python-pytest python-tomli
|
2021-10-16 18:03:44 -05:00
|
|
|
script:
|
2021-10-31 11:53:20 -06:00
|
|
|
- make test
|
2021-10-16 18:03:44 -05:00
|
|
|
only:
|
|
|
|
changes:
|
|
|
|
- keyringctl
|
2021-10-31 11:53:20 -06:00
|
|
|
- libkeyringctl/*
|
2021-11-01 11:36:02 -06:00
|
|
|
- tests/*
|
2021-10-31 15:25:09 -06:00
|
|
|
- .gitlab-ci.yml
|
2021-11-01 11:36:02 -06:00
|
|
|
- Makefile
|
2022-06-04 03:40:24 -05:00
|
|
|
coverage: '/TOTAL.*\s([.\d]+)%/'
|
2021-11-01 11:36:02 -06:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
reports:
|
2022-06-04 03:40:24 -05:00
|
|
|
coverage_report:
|
|
|
|
coverage_format: cobertura
|
|
|
|
path: build/coverage.xml
|
2021-11-01 11:36:02 -06:00
|
|
|
junit: build/junit-report.xml
|
2021-10-16 18:03:44 -05:00
|
|
|
|
|
|
|
build_install:
|
2021-10-31 11:53:20 -06:00
|
|
|
stage: test
|
|
|
|
needs: []
|
2021-10-16 18:03:44 -05:00
|
|
|
before_script:
|
2022-07-22 18:53:23 -05:00
|
|
|
- pacman -Syu --needed --noconfirm make pkgconf python sequoia-sq systemd
|
2021-10-16 18:03:44 -05:00
|
|
|
script:
|
|
|
|
- make
|
|
|
|
- make install PREFIX=/usr
|
|
|
|
- pacman-key --init
|
|
|
|
- pacman-key --populate archlinux
|
|
|
|
- pacman-key --updatedb
|
|
|
|
- pacman -Syu
|
2021-11-07 16:31:19 -06:00
|
|
|
|
|
|
|
keyring_check:
|
|
|
|
stage: test
|
|
|
|
needs: []
|
|
|
|
before_script:
|
2022-01-12 16:48:29 -06:00
|
|
|
- pacman -Syu --needed --noconfirm make python sequoia-sq git
|
2021-11-07 16:31:19 -06:00
|
|
|
script:
|
|
|
|
- ./keyringctl check
|
2022-01-12 16:48:29 -06:00
|
|
|
- ./keyringctl ci
|
2021-11-07 16:31:19 -06:00
|
|
|
only:
|
|
|
|
changes:
|
2022-01-12 16:48:29 -06:00
|
|
|
- keyring/**/*
|
2021-11-07 16:31:19 -06:00
|
|
|
- keyringctl
|
|
|
|
- libkeyringctl/*
|
|
|
|
- tests/*
|
|
|
|
- .gitlab-ci.yml
|
|
|
|
- Makefile
|