pulsar/script/cibuild
2012-09-27 11:38:15 -07:00

16 lines
373 B
Ruby
Executable File

#!/usr/bin/env ruby
sha = `git rev-parse HEAD`.chop
key = File.expand_path('../atom.githubapp.com', __FILE__)
system 'chmod', '600', key
system 'ssh',
'-l', 'atom',
'-i', key,
'-o', 'StrictHostKeyChecking=no',
'-p', '6000',
'atom.githubapp.com',
"cd /Users/atom/code/atom && git fetch -q origin && git reset -q --hard #{sha} && rake test"
exit $?.exitstatus