diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-01-30 15:03:40 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-11-04 18:49:51 +0100 |
commit | d94ea9291b5be63c52edd7fe54cb87d7dd282e19 (patch) | |
tree | 40163e41ad04c36069b36c360048608923b9ab44 | |
parent | e852de09cc2a11912aa667b69ac181443e0286f4 (diff) | |
download | Ishtar-d94ea9291b5be63c52edd7fe54cb87d7dd282e19.tar.bz2 Ishtar-d94ea9291b5be63c52edd7fe54cb87d7dd282e19.zip |
Debian: fix test launch - fix dependency
-rw-r--r-- | debian/control | 4 | ||||
-rwxr-xr-x | debian/rules | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/debian/control b/debian/control index 061cd9b93..2d91e0fb6 100644 --- a/debian/control +++ b/debian/control @@ -13,7 +13,6 @@ Package: python3-django-ishtar Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, - # generic python lib python3-bs4, python3-gdal, python3-lxml, @@ -27,11 +26,9 @@ Depends: ${misc:Depends}, python3-tidylib, python3-unidecode, python3-xmltodict, - # generic python lib - custom packaging python3-django-simple-history, python3-secretary, python3-weasyprint, - # django python3-django (>= 1.11.18), python3-django (<< 2.0), python3-ajax-select, @@ -41,7 +38,6 @@ Depends: ${misc:Depends}, python3-django-extra-views, python3-django-formtools, python3-django-registration, - # generic apg, gettext, locales, diff --git a/debian/rules b/debian/rules index f30c7c165..d1cda62a6 100755 --- a/debian/rules +++ b/debian/rules @@ -8,9 +8,17 @@ export PYBUILD_NAME = ishtar %: @dh $@ --with python3 --buildsystem=pybuild -#override_dh_auto_test: - #dh_auto_test -- --test-tox -# tox -c tox.ini -e py37 +override_dh_auto_test: + sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "ishtar-setup-test";' + sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "test_ishtar-setup-test";' + sudo -u postgres psql -c 'DROP ROLE IF EXISTS "ishtar-setup-test";' + # superuser needed to create postgis extension... + sudo -u postgres createuser --superuser ishtar-setup-test + sudo -u postgres psql -c "ALTER USER \"ishtar-setup-test\" WITH PASSWORD 'ishtar-setup-test';" + sudo -u postgres createdb -O ishtar-setup-test ishtar-setup-test + dh_auto_test + sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "ishtar-setup-test";' + sudo -u postgres psql -c 'DROP ROLE IF EXISTS "ishtar-setup-test";' |