summaryrefslogtreecommitdiff
path: root/.sbuildrc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2016-05-21 21:15:26 +0900
committerSean Whitton <spwhitton@spwhitton.name>2016-05-21 21:15:26 +0900
commit839d24b2440b63d47b9a4955b104f1f37d885775 (patch)
tree8ede5d9fd6cb40ecd9574e73ceb776aeaffd3f99 /.sbuildrc
parent3d13afc58ed226e10f95c99fc344eb8473e84063 (diff)
downloaddotfiles-839d24b2440b63d47b9a4955b104f1f37d885775.tar.gz
updated sbuildrc for propellor setup
Diffstat (limited to '.sbuildrc')
-rw-r--r--.sbuildrc19
1 files changed, 17 insertions, 2 deletions
diff --git a/.sbuildrc b/.sbuildrc
index 938319f0..c261abe9 100644
--- a/.sbuildrc
+++ b/.sbuildrc
@@ -10,7 +10,16 @@ $lintian_opts = ['--allow-root', '--color=always']; # might also pass: +EIL +ped
# TODO detect or specify in a var at top of file the architecture in the following
$run_piuparts = 1;
-$piuparts_opts = ['--schroot', '/srv/chroot/unstable-i386'];
+$piuparts_opts = [
+ '--schroot',
+ 'unstable-i386-sbuild',
+ '--fail-if-inadequate',
+ '--fail-on-broken-symlinks',
+
+ # eatmydata is in the schroot's command-prefix so stop piuparts
+ # trying to wrap another eatmydata around that (it fails)
+ '--no-eatmydata'
+ ];
$external_commands = {
'post-build-commands' => [
@@ -18,7 +27,13 @@ $external_commands = {
'adt-run',
'--changes', '%c',
'---',
- 'schroot', 'unstable-i386-sbuild',
+ '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'
],
],
};