Sha256: 0c907c992ddf7a01c170040f2f9e8e308774c83c6c8c99e22435ae267f4b337c

Contents?: true

Size: 1.43 KB

Versions: 5

Compression:

Stored size: 1.43 KB

Contents

# Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

# frozen_string_literal: true

require 'rspec/core/rake_task'
require 'bundler/gem_tasks'

desc 'Open an irb session preloaded with this library'
task :console do
  sh 'irb -r rubygems -I lib -r elastic-enterprise-search.rb'
end

desc 'Run Elastic Enterprise Search stack'
task :stack, [:version] do |_, params|
  sh "STACK_VERSION=#{params[:version]} ./.ci/run-local.sh"
end

namespace :spec do
  desc 'Run client tests'
  task :client do
    sh 'rspec spec/enterprise-search spec/workplace-search spec/app-search'
  end

  desc 'Run integration tests'
  task :integration do
    sh 'rspec spec/integration'
  end

  desc 'Run all tests'
  task :all do
    sh 'rspec spec'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elastic-enterprise-search-7.12.1 Rakefile
elastic-enterprise-search-7.13.0 Rakefile
elastic-enterprise-search-7.13.0.pre Rakefile
elastic-enterprise-search-7.12.0 Rakefile
elastic-enterprise-search-7.11.0 Rakefile