Sha256: 289f8f92bed055ff0c93148c75cc36c4849cb0b55d81436fe5ae22fdc5d8eac5
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
require 'bundler' Bundler::GemHelper.install_tasks require './lib/license_finder/platform' require 'rspec/core/rake_task' require 'cucumber' require 'cucumber/rake/task' desc "Run all specs in spec/" RSpec::Core::RakeTask.new(:spec) do |t| t.fail_on_error = true t.pattern = "./spec/**/*_spec.rb" t.rspec_opts = %w[--color] end desc "Run all cukes in features/" Cucumber::Rake::Task.new(:features) do |t| tags = LicenseFinder::Platform.darwin? ? "" : "--tags ~@ios" t.cucumber_opts = "features --format pretty #{tags}" end desc "Check for non-Ruby development dependencies." task :check_dependencies do require "open3" dependencies = { "mvn" => "Maven", "npm" => "node.js", "pip" => "Python", "gradle" => "Gradle" } dependencies["pod"] = "Cocoapods" if LicenseFinder::Platform.darwin? satisfied = true dependencies.each do |dependency, description| printf "checking dev dependency for #{description} ... " `which #{dependency}` ; status = $? if status.success? puts "OK" else puts "missing `#{dependency}`" satisfied = false end end exit 1 unless satisfied end task :spec => :check_dependencies task :features => :check_dependencies task :default => [:spec, :features]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.2 | Rakefile |
license_finder-1.2-java | Rakefile |