#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

#export PYBUILD_NAME=gitdb

#%:
#	dh $@  --with python2

export PYBUILD_DISABLE=test
export PYBUILD_NAME=gitdb

export PYBUILD_SYSTEM=distutils
export PYTHONWARNINGS=d

%:
	dh $@ --with python2 --buildsystem=pybuild

# override_dh_auto_build:
#	dh_auto_build

# override_dh_auto_install:
#	dh_auto_install

#override_dh_auto_test:
#	mkdir TESTGITDB
#	cd TESTGITDB; \
#     git init; \
#     git config user.name "TESTING"; \
#     git config user.email "TESTING@example.com"; \
#     for c in `seq 400`; do echo $$c >| $$c; git add $$c; git commit -m "commit $$c" > /dev/null; done; git gc
#	GITDB_TEST_GIT_REPO_BASE=$(CURDIR)/TESTGITDB/.git \
#     nosetests -s -v gitdb/test
#	rm -rf TESTGITDB
