diff --git a/Makefile b/Makefile index 8ac381b..b5fd0ac 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/debian/control b/debian/control index 0e97237..5c13a9d 100644 --- a/debian/control +++ b/debian/control @@ -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 diff --git a/debian/rules b/debian/rules index 0663c0a..2fc7d6e 100755 --- a/debian/rules +++ b/debian/rules @@ -5,3 +5,6 @@ execute_before_dh_auto_build: make + +execute_after_dh_auto_test: + pg_virtualenv -v 13 make test-deploy