Sha256: 6dd1ebb99b1127123ee17d14578221397e9fb21f1f7a07df6a5b08434e266da0
Contents?: true
Size: 792 Bytes
Versions: 1
Compression:
Stored size: 792 Bytes
Contents
require 'net/http' require "uri" module Perkins class BuildWorker include Sidekiq::Worker def perform(report_id, sha, branch) report = Perkins::BuildReport.find(report_id) report.retrieve_commit_info repo = report.repo repo.virtual_sha = "-#{report.id}-#{sha}" #repo.build_runner_config #it actually clone repo and instantiates git data & check travis.yml repo.load_git return if repo.runner.blank? repo.runner.report = report repo.runner.sha = sha repo.runner.branch = branch repo.send_sse(status: "start") repo.runner.run(sha) report = repo.build_reports.find_by(sha: sha) report.send_github_status(sha) repo.send_sse({ status: "stop", report: report }) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
perkins-0.0.5 | lib/perkins/build_worker.rb |