2014-06-19 19:26:25 -04:00
|
|
|
def run_or_fail(command)
|
|
|
|
pid = Process.spawn(command)
|
|
|
|
Process.wait(pid)
|
|
|
|
exit 1 unless $?.exitstatus == 0
|
|
|
|
end
|
|
|
|
|
|
|
|
unless ENV['NO_UPDATE']
|
|
|
|
run_or_fail("git remote update")
|
|
|
|
|
|
|
|
checkout = ENV['COMMIT_HASH'] || "HEAD"
|
|
|
|
run_or_fail("git checkout #{checkout}")
|
|
|
|
run_or_fail("bundle")
|
2017-05-15 13:34:30 -04:00
|
|
|
run_or_fail("bundle-audit check --update")
|
2014-06-19 19:26:25 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
run_or_fail("bundle exec rake docker:test")
|