forked from MagLev/maglev
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.mspec
More file actions
43 lines (34 loc) · 1.13 KB
/
Copy pathdefault.mspec
File metadata and controls
43 lines (34 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*-ruby-*-
# Default RubySpec files for MagLev.
DIR = File.dirname(__FILE__)
$ci_files = [
'spec/rubyspec/language',
'spec/rubyspec/core',
# 'spec/localspec/language',
]
# The list of known bad specs are kept in a separate file so that both the
# mspec framework and the build scripts have access to the list. The
# following code reads the file and adds the appropriate entries into the
# ci_files array.
File.open(DIR + '/spec/do_not_run_specs') do |f|
f.each do |line|
# Skip blank lines and lines beginning with '#'
line =~ /^#|^\s*$/ && next
entry = '^' + line.chomp
$ci_files << entry
end
end
class MSpecScript
# Define the continuous integration specs (the ones known to pass)
set :ci_files, $ci_files
# The set of substitutions to transform a spec filename into a tag
# filename. The transformations are applied, in the given sequence, to a
# filename, yielding a tag file name.
set :tags_patterns, [
[%r(spec/rubyspec/), 'spec/frozen/'],
[%r(spec/), 'spec/tags/'],
[/_spec.rb$/, '_tags.txt']
]
# By default, run maglev
set :target, File.dirname(__FILE__) + '/bin/maglev-ruby'
end