Add a deployment test while building the Debian package

This commit is contained in:
jordi fita mas 2023-01-22 04:32:03 +01:00
parent ea9e830a75
commit 8fa3367f6c
3 changed files with 13 additions and 0 deletions

View File

@ -15,3 +15,9 @@ po/%.po: $(POT_FILE)
$(POT_FILE): $(INPUT_FILES)
xgettext --no-wrap --language=Scheme --from-code=UTF-8 --output=$@ --keyword=pgettext:1,2c --package-name=numerus --msgid-bugs-address=jordi@tandem.blog $^
test-deploy:
sqitch deploy --db-name $(PGDATABASE)
pg_prove test/*
.PHONY: locales test-db

4
debian/control vendored
View File

@ -10,6 +10,10 @@ Build-Depends:
golang-github-jackc-pgx-v4-dev,
golang-github-leonelquinteros-gotext-dev,
golang-golang-x-text-dev,
postgresql-all (>= 217~),
sqitch,
pgtap,
postgresql-13-pgtap
Standards-Version: 4.6.0
XS-Go-Import-Path: dev.tandem.ws/tandem/numerus
Vcs-Browser: https://dev.tandem.ws/tandem/numerus

3
debian/rules vendored
View File

@ -5,3 +5,6 @@
execute_before_dh_auto_build:
make
execute_after_dh_auto_test:
pg_virtualenv -v 13 make test-deploy