diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-01-30 15:03:40 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-01-09 18:05:36 +0100 |
commit | d4baaca8a24bc7af61860d24aa49d45679a999fb (patch) | |
tree | a03a69f9560161ccf34825b5ef22c05400210e2a /debian | |
parent | 85c0a703e9657d2d133b0be0d19a575620f76485 (diff) | |
download | Ishtar-d4baaca8a24bc7af61860d24aa49d45679a999fb.tar.bz2 Ishtar-d4baaca8a24bc7af61860d24aa49d45679a999fb.zip |
Debian: fix test launch - fix dependency
Diffstat (limited to 'debian')
-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";' |