Sha256: bb884ec600d03082f796125ad2ac4ea7e51e1744f107d9596e81b6dbc82d6fe8
Contents?: true
Size: 479 Bytes
Versions: 15
Compression:
Stored size: 479 Bytes
Contents
#! /usr/bin/env ruby require 'travis' require 'cgi' require 'fileutils' FileUtils.mkpath('logs') `git remote -v | grep origin | head -n1` =~ /github\.com:(.*?)\.git/ repo = Travis::Repository.find($1) build = repo.recent_builds.select {|b| b.finished_at }.first build.jobs.each do |j| c = j.config id = "logs/#{j.allow_failures? ? 'allowed-' : ''}#{j.state}-#{c['rvm']}-#{CGI.escape c['env']}" puts "Downloading #{j.id}" File.open(id, 'w') {|f| f.write(j.log.body) } end
Version data entries
15 entries across 15 versions & 1 rubygems