-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
66 lines (62 loc) · 1.57 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# frozen_string_literal: true
require "bundler/gem_tasks"
require 'cucumber/rake/task'
require 'rdoc/task'
Cucumber::Rake::Task.new
# RDoc::Task.new do |rdoc|
# rdoc.main = "README.md"
# rdoc.rdoc_files.include( "README.md", "lib/**/*.rb" ) ; end
#
# desc "Prepare bundler"
# task :bundleup do
# sh 'gem install bundler --version "~> 1.5" --no-ri --no-rdoc'
# end
#
# desc "Requires"
# task :req do
# $: << File.expand_path( '../lib', __FILE__ )
# require 'bundler/gem_helper'
#
# Bundler::GemHelper.install_tasks
# end
#
# desc "Prepare bundle environment"
# task :up do
# sh 'bundle install'
# end
#
# desc "Distilled clean"
# task :distclean do
# sh 'git clean -fd'
# # sh 'cat .gitignore | while read mask; do rm -rf $(find -iname "$mask"); done'
# end
#
# desc "Generate gem"
# namespace :gem do
# task :build => [ :req ] do
# sh 'gem build rdoba.gemspec'
# end
#
# task :install do
# require File.expand_path( '../lib/rdoba/_version_', __FILE__ )
# sh "gem install rdoba-#{Rdoba::VERSION}.gem"
# end
#
# task :publish => [ :req ] do
# require File.expand_path( '../lib/rdoba/_version_', __FILE__ )
# sh "gem push rdoba-#{Rdoba::VERSION}.gem"
# sh "git tag v#{Rdoba::VERSION}"
# sh "git push"
# sh "git push --tag"
# end
#
# task :make => [ :build, :install, :publish ]
# task :default => :make
# end
#
task(:default).clear
task :default => :cucumber
# task :codeclimate => :cucumber
# task :all => [ :bundleup, :up, :cucumber, :'gem:make', :distclean ]
# task :build => [ :bundleup, :up, :cucumber, :rdoc,
# :'gem:build', :'gem:install', :distclean ]