Sha256: 2c052ad05a9c8b08a3dc6f730b90e798885f4a3fbe08de74e641fe24e5e05a18

Contents?: true

Size: 1.63 KB

Versions: 4

Compression:

Stored size: 1.63 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
ptask = Rake::Task["package"]
prerequisites = ptask.prerequisites
prerequisites.delete("test")

ptask.enhance(prerequisites)

yast_submit = ENV["YAST_SUBMIT"] || :factory
Yast::Tasks.submit_to(yast_submit.to_sym)
namespace :osc do
  # This adds to existing desc
  desc "Try YAST_SUBMIT=help rake...."
  task :build
end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yast-rake-0.2.51 lib/yast/rake.rb
yast-rake-0.2.50 lib/yast/rake.rb
yast-rake-0.2.49 lib/yast/rake.rb
yast-rake-0.2.48 lib/yast/rake.rb