diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2025-01-04 15:55:16 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2025-01-04 15:55:16 -0300 |
commit | be35f8c39f7f0bfcab8cc1576813c43e67368f59 (patch) | |
tree | f25298f7d444a5ad4a749ba3e5ca7acc75ff1553 | |
parent | 77ad450f44bdc15fff59c88e9bcaf07e7251a5ce (diff) | |
download | keyringer-be35f8c39f7f0bfcab8cc1576813c43e67368f59.tar.gz keyringer-be35f8c39f7f0bfcab8cc1576813c43e67368f59.tar.bz2 |
Feat: CI: test job (#10)
-rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9e7c9e..ee65ddb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,3 +52,29 @@ debian: artifacts: paths: - dist + +test: + image: debian:testing + script: + # Install keyringer from the distro packaging system + # This ensures the needed dependencies are installed + - apt-get update + - apt-get install -y keyringer + + # Import debian/upstream/signing-key.asc + - git fetch --all + - git branch debian --track origin/debian || true + - git checkout debian + - gpg --import < debian/upstream/signing-key.asc + + # Test in the develop branch + - git branch develop --track origin/develop || true + - git checkout develop + - mkdir ~/temp/tests/keyringer + - ./keyringer test init ~/temp/tests/keyringer + - gpg --with-colons --list-keys | grep uid | awk -F ':' '{ x = $10; gsub(/.*</, "", x); gsub(/>/, "", x); print x, $8; }' >> ~/temp/tests/keyringer/config/recipients/default + - ./keyringer test check + - ./keyringer test teardown -y + + # Test in the main branch + # ... |