Sha256: 009998c84257d4c8075485760db5350df9b45e5a630df481d59e74f8179eae78

Contents?: true

Size: 1.72 KB

Versions: 12

Compression:

Stored size: 1.72 KB

Contents

# frozen_string_literal: true

#--
# Yast rake
#
# Copyright (C) 2009-2013 Novell, Inc.
#   This library is free software; you can redistribute it and/or modify
# it only under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
#   This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
#   You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#++
require "packaging"
require_relative "tasks"

# yast integration testing takes too long and require osc:build so it create
# circle, so replace test dependency with test:unit
task = Rake::Task["package"]
prerequisites = task.prerequisites
prerequisites.delete("test")

task.enhance(prerequisites)

yast_submit = ENV["YAST_SUBMIT"] || :factory
Yast::Tasks.submit_to(yast_submit.to_sym)

Yast::Tasks.configuration do |conf|
  conf.package_name = File.read("RPMNAME").strip if File.exist?("RPMNAME")
  conf.version = Yast::Tasks.spec_version if !Dir.glob("package/*.spec").empty?
  conf.skip_license_check << /spell.dict$/ # skip license check for spelling dictionaries
end

# load own tasks
task_path = File.expand_path("../tasks", __dir__)
Dir["#{task_path}/*.rake"].each do |f|
  load f
end

# optionally load the tasks from yast-rake-ci if it is installed
begin
  require "yast/rake_ci"
rescue LoadError
  puts "INFO: Gem yast-rake-ci not installed, extra tasks not loaded" if verbose == true
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
yast-rake-0.2.46 lib/yast/rake.rb
yast-rake-0.2.45 lib/yast/rake.rb
yast-rake-0.2.44 lib/yast/rake.rb
yast-rake-0.2.43 lib/yast/rake.rb
yast-rake-0.2.42 lib/yast/rake.rb
yast-rake-0.2.41 lib/yast/rake.rb
yast-rake-0.2.40 lib/yast/rake.rb
yast-rake-0.2.39 lib/yast/rake.rb
yast-rake-0.2.38 lib/yast/rake.rb
yast-rake-0.2.37 lib/yast/rake.rb
yast-rake-0.2.36 lib/yast/rake.rb
yast-rake-0.2.34 lib/yast/rake.rb