forked from datastax/ruby-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cucumber.yml
49 lines (46 loc) · 1.72 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<%
cassandra_version = ENV['CASSANDRA_VERSION'] || '3.0.1'
if ENV['DSE_VERSION']
if ENV['DSE_VERSION'].start_with?('4.0') || ENV['DSE_VERSION'].start_with?('4.5') || ENV['DSE_VERSION'].start_with?('4.6')
cassandra_version = '2.0.17'
elsif ENV['DSE_VERSION'].start_with?('4.7') || ENV['DSE_VERSION'].start_with?('4.8')
cassandra_version = '2.1.12'
end
end
cassandra_version_tags = ''
if cassandra_version > '4.0'
cassandra_version_tags << ',@cassandra-version-4.0'
else
cassandra_version_tags << ',@cassandra-version-less-4.0'
end
if cassandra_version > '3.0'
if cassandra_version < '4.0'
cassandra_version_tags << ',@cassandra-version-only-3.0'
else
cassandra_version_tags << ',@cassandra-version-3.0'
end
else
cassandra_version_tags << ',@cassandra-version-less-3.0'
end
if cassandra_version > '2.2'
cassandra_version_tags << ',@cassandra-version-2.2'
end
if cassandra_version > '2.1'
cassandra_version_tags << ',@cassandra-version-2.1'
end
if cassandra_version >= '2.1.3'
cassandra_version_tags << ',@cassandra-version-2.1.3'
end
if cassandra_version > '2.0'
cassandra_version_tags << ',@cassandra-version-2.0'
end
if cassandra_version >= '2.0.9'
cassandra_version_tags << ',@cassandra-version-2.0.9'
end
if cassandra_version.start_with?('1.2')
cassandra_version_tags << ',@cassandra-version-1.2'
end
%>
default: --color --guess --tags ~@todo --tags ~@cassandra-version-specific<%= cassandra_version_tags %> -r features/
non_interactive: --color --guess --tags ~@interactive --tags ~@todo --tags ~@cassandra-version-specific<%= cassandra_version_tags %> -r features/
interactive: --color --guess --tags @interactive --tags ~@todo --tags ~@cassandra-version-specific<%= cassandra_version_tags %> -r features/