From: Silvio Rhatto Date: Sat, 4 Jan 2025 18:55:16 +0000 (-0300) Subject: Feat: CI: test job (#10) X-Git-Tag: 0.6.0~15 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=be35f8c39f7f0bfcab8cc1576813c43e67368f59;p=keyringer.git Feat: CI: test job (#10) --- 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); print x, $8; }' >> ~/temp/tests/keyringer/config/recipients/default + - ./keyringer test check + - ./keyringer test teardown -y + + # Test in the main branch + # ...