~ubuntu-branches/ubuntu/oneiric/bzrtools/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij, Jelmer Vernooij, John Ferlito
  • Date: 2011-05-01 03:58:07 UTC
  • mfrom: (10.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20110501035807-585s003e6xq25o99
[ Jelmer Vernooij ]
* New upstream snapshot.
* Support running the test suite in parallel.
* Switch to dh_python2. Closes: #616770
* Switch to debhelper 7, drop cdbs.

[ John Ferlito ]
* Remove John Ferlito from Uploaders.

[ Jelmer Vernooij ]
* Add build dependency on python-bzrlib.tests for compatibility with
  newer versions of bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# This file is public domain.
3
 
 
4
 
DEB_PYTHON_SYSTEM=pycentral
5
 
 
6
 
include /usr/share/cdbs/1/rules/debhelper.mk
7
 
include /usr/share/cdbs/1/class/python-distutils.mk
8
 
 
9
 
DEB_INSTALL_DOCS_ALL += CREDITS NEWS.Shelf README.Shelf TODO.Shelf
 
2
 
 
3
%:
 
4
        dh --with python2 --buildsystem=python_distutils $*
 
5
 
 
6
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
7
CONCURRENCY = BZR_CONCURRENCY=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
8
endif
10
9
 
11
10
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
12
 
common-post-build-indep::
13
 
        BZR_PLUGINS_AT=bzrtools@$(CURDIR) /usr/bin/bzr selftest -s bp.bzrtools
 
11
override_dh_auto_test:
 
12
        $(CONCURRENCY) BZR_PLUGINS_AT=bzrtools@$(CURDIR) /usr/bin/bzr selftest \
 
13
            --parallel=fork -v -s bp.bzrtools
14
14
endif