forked from cucumber/aruba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cucumber.yml
24 lines (21 loc) · 1.34 KB
/
cucumber.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<%
$LOAD_PATH << ::File.expand_path('../lib', __FILE__)
require 'aruba/version'
require 'ffi'
java_version = (RUBY_DESCRIPTION.match(/.*?on.*?(1\.[\d]\..*? )/))[1] if defined?(JRUBY_VERSION)
std_opts = "--format pretty --color --exclude features/fixtures --require features --tags ~@unsupported-on"
java_default_opts = "--tags [email protected]" if defined?(JRUBY_VERSION) && (java_version < '1.7.0')
java_wip_opts = "--tags @wip-jruby-java-1.6:3" if defined?(JRUBY_VERSION) && (java_version < '1.7.0')
ignore_opts = []
ignore_opts << '--tags ~@ignore'
ignore_opts << '--tags ~@unsupported-on-platform-java' if RUBY_PLATFORM.include? 'java'
ignore_opts << '--tags ~@unsupported-on-platform-mri' if !RUBY_PLATFORM.include? 'java'
ignore_opts << '--tags ~@unsupported-on-platform-windows' if FFI::Platform.windows?
ignore_opts << '--tags ~@unsupported-on-platform-unix' if FFI::Platform.unix?
ignore_opts << '--tags ~@unsupported-on-platform-mac' if FFI::Platform.mac?
ignore_opts << '--tags ~@unsupported-on-ruby-older-2' if RUBY_VERSION < '2'
ignore_opts << '--tags ~@requires-aruba-version-1' if Aruba::VERSION < '1'
ignore_opts = ignore_opts.join(' ')
%>
default: <%= std_opts %> --tags ~@wip <%= java_default_opts %> <%= ignore_opts %>
wip: <%= std_opts %> --wip --tags @wip:3 <%= java_wip_opts %> <%= ignore_opts %>