---
+variables:
+ KEYRINGER_NON_INTERACTIVE: "1"
+
debian:
image: debian:testing
script:
- gbp buildpackage --git-ignore-new --git-upstream-signatures=no --git-no-sign-tags -us -uc
# Run lintian
- #- lintian --allow-root -v --pedantic ../keyringer_*.deb
+ # Usually gbp-buildpackage already calls lintian, but we run it again just to make sure
+ - lintian --allow-root -v --pedantic ../keyringer_*.deb
# Run piuparts
#- piuparts ../keyringer*.deb
- mkdir -p ~/temp/tests
- git config --global user.name 'Test'
- git config --global user.email 'test@example.org'
- - KEYRINGER_NON_INTERACTIVE=1 ./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 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 recipients ls
# Test the keyring in the develop branch
# This will also test the expiration of the upstream signing key
# Tear down the keyring in the develop branch
- ./keyringer test teardown -y
-
- # Test in the main branch
- # ...