kitchen/debian/rules

22 lines
568 B
Makefile
Executable File

#!/usr/bin/make -f
%:
dh $@ --with python2
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
mkdir -p debian/tmp/locales
localedef -f UTF-8 -i en_US ./debian/tmp/locales/en_US.UTF-8/
localedef -f UTF-8 -i pt_BR ./debian/tmp/locales/pt_BR.UTF-8/
localedef -f ISO-8859-1 -i pt_BR ./debian/tmp/locales/pt_BR.ISO-8859-1/
set -e
echo $(shell pwd)
for py in $(shell pyversions -r); do \
LOCPATH=$(CURDIR)/debian/tmp/locales/ $$py /usr/bin/nosetests tests; \
done
endif
override_dh_auto_clean:
rm -rf @test* kitchen.egg-info
dh_auto_clean