From bedcd0babbddc6f045fbd8b4beb2714a4023e123 Mon Sep 17 00:00:00 2001 From: Jonas Weber Date: Fri, 29 Jan 2016 20:39:51 +0100 Subject: [PATCH] Don't fail build when nothing was built --- invfile.lua.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/invfile.lua.md b/invfile.lua.md index b67f465..b9ea044 100644 --- a/invfile.lua.md +++ b/invfile.lua.md @@ -748,8 +748,10 @@ API database. "./data/api:/source" }}) .run('add', '_images') - .run('commit', '-m', 'Build ' .. ENV.TRAVIS_BUILD_NUMBER) - .run('push', 'origin', 'gh-pages') + .withConfig({entrypoint = {'/bin/sh', '-c'}}) + .run('git commit -m "Build ' + .. ENV.TRAVIS_BUILD_NUMBER .. '" || true') + .run('push origin gh-pages') # Appendix