diff options
-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 + # ... |