Sha256: 91e04a8082eb08ef81e7e233ad74b9ab74bc0f5dc9c56b6565eb71b35d53af20
Contents?: true
Size: 1.89 KB
Versions: 23
Compression:
Stored size: 1.89 KB
Contents
require 'bundler/gem_tasks' require 'puppetlabs_spec_helper/tasks/fixtures' task :default => :spec #### RUBOCOP #### require 'rubocop/rake_task' RuboCop::RakeTask.new(:rubocop) do |t| t.options = ['--display-cop-names'] end #### RSPEC #### require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |t| Rake::Task[:spec_prep].invoke # thanks to the fixtures/modules/ symlinks this needs to exclude fixture modules explicitely excludes = ['fixtures/**/*.rb,fixtures/modules/*/**/*.rb'] if RUBY_PLATFORM == 'java' excludes += ['acceptance/**/*.rb', 'integration/**/*.rb', 'puppet/resource_api/*_context_spec.rb', 'puppet/util/network_device/simple/device_spec.rb'] t.rspec_opts = '--tag ~agent_test' end t.exclude_pattern = "spec/{#{excludes.join ','}}" end namespace :spec do desc 'Run RSpec code examples with coverage collection' task :coverage do ENV['COVERAGE'] = 'yes' Rake::Task['spec'].execute end end #### LICENSE_FINDER #### desc 'Check for unapproved licenses in dependencies' task(:license_finder) do system('license_finder --decisions-file=.dependency_decisions.yml') || raise(StandardError, 'Unapproved license(s) found on dependencies') end #### CHANGELOG #### begin require 'github_changelog_generator/task' GitHubChangelogGenerator::RakeTask.new :changelog do |config| require 'puppet/resource_api/version' config.future_release = "v#{Puppet::ResourceApi::VERSION}" config.header = "# Changelog\n\n" \ "All significant changes to this repo will be summarized in this file.\n" # config.include_labels = %w[enhancement bug] config.user = 'puppetlabs' config.project = 'puppet-resource_api' end rescue LoadError desc 'Install github_changelog_generator to get access to automatic changelog generation' task :changelog do raise 'Install github_changelog_generator to get access to automatic changelog generation' end end
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
puppet-resource_api-1.0.1 | Rakefile |
puppet-resource_api-1.0.0 | Rakefile |
puppet-resource_api-0.10.0 | Rakefile |