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

Version Path
moneta-1.5.2 script/travis-logs
moneta-1.5.1 script/travis-logs
moneta-1.5.0 script/travis-logs
moneta-1.4.2 script/travis-logs
moneta-1.4.1 script/travis-logs
moneta-1.4.0 script/travis-logs
moneta-1.3.0 script/travis-logs
moneta-1.2.1 script/travis-logs
moneta-1.2.0 script/travis-logs
moneta-1.1.1 script/travis-logs
moneta-1.1.0 script/travis-logs
moneta-1.0.0 script/travis-logs
moneta-0.8.1 script/travis-logs
moneta-0.8.0 script/travis-logs
moneta-0.7.20 script/travis-logs