Skip to content

Instantly share code, notes, and snippets.

@Marahin

Marahin/ci.rb Secret

Created November 16, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marahin/65dea75919283ddfb1fcb6335c2002e2 to your computer and use it in GitHub Desktop.
Save Marahin/65dea75919283ddfb1fcb6335c2002e2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'pry'
JOBS = [
"bin/rspec_rerun spec",
"bin/quality"
].freeze
child_pids = JOBS.map do |job|
child_pid = fork { `#{job}` }
sleep 0.1
Process.detach(child_pid)
child_pid
end
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment