aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/install
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2015-12-09 23:25:03 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-22 16:58:03 +0000
commit7212ba2f71522b7757410fee5ad43ba2f5e5076b (patch)
tree22d013e83c9d9b0894a21ea3ee3e1da3f27566ca /.travis/install
parent469fbc56dbfd8c276a10226f10b804d84a6f2539 (diff)
[Travis] Improve handling of bad module install.
Mark build broken if modules don't install, and only upload new module caches on success.
Diffstat (limited to '.travis/install')
-rwxr-xr-x.travis/install6
1 files changed, 5 insertions, 1 deletions
diff --git a/.travis/install b/.travis/install
index a9132ba82..00ef16bc8 100755
--- a/.travis/install
+++ b/.travis/install
@@ -25,4 +25,8 @@ except IOError:
os.remove(wanted_filename)
print "No cached copy found, running carton install..."
-os.system('vendor/bin/carton install --deployment')
+ret = os.system('vendor/bin/carton install --deployment')
+if ret:
+ os.system('cat ~/.cpanm/build.log')
+
+sys.exit(ret)