File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,4 @@ docker run \
30
30
--name elasticsearch-ruby \
31
31
--rm \
32
32
elastic/elasticsearch-ruby \
33
- bundle exec rake elasticsearch:download_artifacts test:rest_api test:integration
33
+ bundle exec rake elasticsearch:download_artifacts test:platinum:integration test:rest_api
Original file line number Diff line number Diff line change @@ -44,11 +44,6 @@ namespace :test do
44
44
t . pattern = "#{ test_dir } /spec/rest_api/rest_api_yaml_spec.rb"
45
45
end
46
46
47
- desc 'Run integration tests'
48
- task :integration do
49
- Rake ::Task [ 'test:platinum:integration' ] . invoke
50
- end
51
-
52
47
desc 'Run unit and integration tests'
53
48
task :all do
54
49
Rake ::Task [ 'test:unit' ] . invoke
@@ -72,7 +67,7 @@ namespace :test do
72
67
73
68
desc 'Run Platinum Integration Specs'
74
69
RSpec ::Core ::RakeTask . new ( :integration ) do |t |
75
- return unless ENV [ 'TEST_SUITE' ] == 'platinum'
70
+ exit ( 0 ) unless ENV [ 'TEST_SUITE' ] == 'platinum'
76
71
77
72
t . pattern = 'spec/platinum/integration/**/*_spec.rb'
78
73
t . ruby_opts = '-W0'
Original file line number Diff line number Diff line change @@ -61,6 +61,14 @@ namespace :test do
61
61
puts "\n "
62
62
end
63
63
64
+ namespace :platinum do
65
+ desc 'Run platinum integration tests'
66
+ task :integration do
67
+ sh "cd #{ CURRENT_PATH . join ( 'elasticsearch-api' ) } && unset BUNDLE_GEMFILE && bundle exec rake test:platinum:integration"
68
+ puts "\n "
69
+ end
70
+ end
71
+
64
72
# Returns: version_number, build_hash
65
73
def cluster_info
66
74
require 'elasticsearch'
You can’t perform that action at this time.
0 commit comments