comparison test/test_readconfig.py @ 297:4dd6ec3a1151

Make it possible to use parallel builds for packages that support it: Add a new per-track configuration option deb_build_options whose value is passed as the DEB_BUILD_OPTIONS environment variable to the pbuilder process.
author Bernhard Herzog <bh@intevation.de>
date Fri, 20 Nov 2009 20:19:51 +0000
parents faeeac2c4c71
children c32dc72ba979
comparison
equal deleted inserted replaced
296:ce7be2fb93ee 297:4dd6ec3a1151
46 svn_url: svn://example.com/%(name)s/trunk 46 svn_url: svn://example.com/%(name)s/trunk
47 base_dir: %(tracks_dir)s/%(name)s 47 base_dir: %(tracks_dir)s/%(name)s
48 packager_class: readconfig_test.extraargs 48 packager_class: readconfig_test.extraargs
49 orig_tarball: %(base_dir)s/mytarball.tgz 49 orig_tarball: %(base_dir)s/mytarball.tgz
50 rules_svn_url: file:///tmp/my-debian-repository 50 rules_svn_url: file:///tmp/my-debian-repository
51 deb_build_options: parallel=2
51 """ 52 """
52 53
53 files = [("treepkg.cfg", config_contents), 54 files = [("treepkg.cfg", config_contents),
54 ("readconfig_test", 55 ("readconfig_test",
55 [("__init__.py", ""), 56 [("__init__.py", ""),
81 [ 82 [
82 dict(name="extraargs", 83 dict(name="extraargs",
83 base_dir="/home/builder/mill/tracks/extraargs", 84 base_dir="/home/builder/mill/tracks/extraargs",
84 deb_email="treepkg@example.com", 85 deb_email="treepkg@example.com",
85 deb_fullname="TreePKG", 86 deb_fullname="TreePKG",
87 deb_build_options="parallel=2",
86 pkg_revision_template="treepkg%(pkg_revision)d", 88 pkg_revision_template="treepkg%(pkg_revision)d",
87 handle_dependencies=False, 89 handle_dependencies=False,
88 packager_class="readconfig_test.extraargs", 90 packager_class="readconfig_test.extraargs",
89 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", 91 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
90 root_cmd=['sudo'], 92 root_cmd=['sudo'],
95 "tracks/extraargs/mytarball.tgz")), 97 "tracks/extraargs/mytarball.tgz")),
96 dict(name="simple", 98 dict(name="simple",
97 base_dir="/home/builder/mill/tracks/simple", 99 base_dir="/home/builder/mill/tracks/simple",
98 deb_email="treepkg@example.com", 100 deb_email="treepkg@example.com",
99 deb_fullname="TreePKG", 101 deb_fullname="TreePKG",
102 deb_build_options="",
100 rules_svn_url="", 103 rules_svn_url="",
101 pkg_revision_template="treepkg%(pkg_revision)d", 104 pkg_revision_template="treepkg%(pkg_revision)d",
102 handle_dependencies=True, 105 handle_dependencies=True,
103 packager_class="readconfig_test.simple", 106 packager_class="readconfig_test.simple",
104 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", 107 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)