summaryrefslogtreecommitdiff
path: root/.autotest
blob: 91445cd1ed66c43903442dd18727394b057c6647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require "autotest/restart"

Autotest.add_hook :initialize do |at|
  at.find_directories = ARGV unless ARGV.empty?
  at.testlib = "minitest/autorun"
end

Autotest.add_hook :run_command do |at|
  at.unit_diff = 'cat'
  if ENV['ONENINE']
    system "rake1.9 compile"
  else
    system "rake compile"
  end
end

Autotest.add_hook :ran_command do |at|
  File.open('/tmp/autotest.txt', 'wb') { |f|
    f.write(at.results.join)
  }
end