| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | set -x |
| 5 | export OSLO_PACKAGE_VERSION=$(dpkg-parsechangelog -SVersion | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~git.*//' -e 's/~/.0/' -e 's/+dfsg1//' -e 's/+ds1//' | head -n 1) |
| 6 | |
| 7 | CWD=$(pwd) |
| 8 | PYTHON3S=$(py3versions -vs) |
| 9 | for i in ${PYTHON3S} ; do |
| 10 | python${i} setup.py install --install-layout=deb --root ${CWD}/debian/tmp |
| 11 | PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \ |
| 12 | http_proxy=127.0.0.1:9 https_proxy=127.0.0.9:9 \ |
| 13 | HTTP_PROXY=127.0.0.1:9 HTTPS_PROXY=127.0.0.1:9 \ |
| 14 | python${i} manage.py test heat_dashboard.test -v 2 --settings=heat_dashboard.test.settings --exclude-tag integration |
| 15 | done |