summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Whitton2016-08-24 19:36:19 -0700
committerSean Whitton2016-08-24 19:36:19 -0700
commitc4f865f7d39c987e13eaca7d1e72430562b2ca02 (patch)
treec54de2708e321d65518252ea239164afb7d2ee82 /src
parent49ae29fb5ebae831189339fafc45f0c6dec45e0b (diff)
update sample config for sbuild 0.71.0
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Property/Sbuild.hs24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/Propellor/Property/Sbuild.hs b/src/Propellor/Property/Sbuild.hs
index 7a27473c..e2080ee3 100644
--- a/src/Propellor/Property/Sbuild.hs
+++ b/src/Propellor/Property/Sbuild.hs
@@ -4,7 +4,8 @@
{-|
Maintainer: Sean Whitton <spwhitton@spwhitton.name>
-Build and maintain schroots for use with sbuild.
+Build and maintain schroots for use with sbuild. Assumes that the
+version of sbuild available is at least 0.71.0.
Suggested usage in @config.hs@:
@@ -21,27 +22,14 @@ In @~/.sbuildrc@:
> $run_piuparts = 1;
> $piuparts_opts = [
> '--schroot',
-> 'unstable-i386-piuparts',
+> '%r-%a-piuparts',
> '--fail-if-inadequate',
> '--fail-on-broken-symlinks',
> ];
>
-> $external_commands = {
-> 'post-build-commands' => [
-> [
-> 'adt-run',
-> '--changes', '%c',
-> '---',
-> 'schroot', 'unstable-i386-sbuild;',
->
-> # if adt-run's exit code is 8 then the package had no tests but
-> # this isn't a failure, so catch it
-> 'adtexit=$?;',
-> 'if', 'test', '$adtexit', '=', '8;', 'then',
-> 'exit', '0;', 'else', 'exit', '$adtexit;', 'fi'
-> ],
-> ],
-> };
+> $run_autopkgtest = 1;
+> $autopkgtest_root_args = "";
+> $autopkgtest_opts = ["--", "schroot", "%r-%a-sbuild"];
We use @sbuild-createchroot(1)@ to create a chroot to the specification of
@sbuild-setup(7)@. This differs from the approach taken by picca's Sbuild.hs,