File: rules

package info (click to toggle)
python-gitdb 2.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 736 kB
  • sloc: python: 3,281; makefile: 13
file content (26 lines) | stat: -rwxr-xr-x 894 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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,python3 --buildsystem=pybuild

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