Sha256: 3bc26d9af509c5398d25469afb8313b2ac9af28ef90775330fd5679ada2c2793
Contents?: true
Size: 953 Bytes
Versions: 5
Compression:
Stored size: 953 Bytes
Contents
# encoding: utf-8 require 'rubygems' begin require 'bundler' rescue LoadError => e warn e.message warn "Run `gem install bundler` to install Bundler." exit -1 end begin Bundler.setup(:development) rescue Bundler::BundlerError => e warn e.message warn "Run `bundle install` to install missing gems." exit e.status_code end require 'rake' desc "Removes the pkg directory" task :clean do pwd = Dir.pwd.to_s FileUtils.rm_rf Dir["#{pwd}/pkg"] end require 'rspec/core/rake_task' RSpec::Core::RakeTask.new Rake::Task[:spec].enhance [:clean] task :test => :spec do require 'simplecov' require 'codeclimate-test-reporter' CodeClimate::TestReporter::Formatter.new.format(SimpleCov.result) end task :default => :test require 'yard' YARD::Rake::YardocTask.new task :doc => :yard task :abide => :build do require 'abide' Bundler.clean_exec 'lebascii' end require "bundler/gem_tasks" Rake::Task[:build].enhance [:clean]
Version data entries
5 entries across 5 versions & 1 rubygems