diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-12-09 23:25:03 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-01-22 16:58:03 +0000 |
commit | 7212ba2f71522b7757410fee5ad43ba2f5e5076b (patch) | |
tree | 22d013e83c9d9b0894a21ea3ee3e1da3f27566ca | |
parent | 469fbc56dbfd8c276a10226f10b804d84a6f2539 (diff) |
[Travis] Improve handling of bad module install.
Mark build broken if modules don't install, and only upload new module
caches on success.
-rw-r--r-- | .travis.yml | 2 | ||||
-rwxr-xr-x | .travis/install | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 1f8e95d58..c0191f177 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,5 +28,5 @@ before_script: - ./bin/emptyhomes/make_welsh_po - commonlib/bin/gettext-makemo FixMyStreet script: "bin/run-tests t" -after_script: +after_success: - .travis/after_script 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) |