Sha256: eafb09eeecee31110a7e08164d8941d61e9d0ae4073b848efd456f0a43c92f7b
Contents?: true
Size: 1.7 KB
Versions: 30
Compression:
Stored size: 1.7 KB
Contents
#-- # 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", __FILE__) 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
30 entries across 30 versions & 1 rubygems