Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix travis log on hash result

Oliver Güntherb8b046e16b38
diff --git a/script/travis_pr_errors b/script/travis_pr_errors
index a4d1a782ed7..ff4c429ff93 100755
--- a/script/travis_pr_errors
+++ b/script/travis_pr_errors
@@ -30,6 +30,11 @@ results = Parallel.map(build.jobs, progress: 'Searching logs') do |job|
errors = []
log = job.log.session.get_raw("jobs/#{job.id}/log")
+
+ if log.is_a?(Hash)
+ log = log['log']['body']
+ end
+
log.scan(/^rspec (\S+) #.+$/) do |match|
errors << match
end