-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add comments to the Rakefile to make it understandable
- Loading branch information
Showing
4 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,38 @@ | ||
# A Rakefile is like a Makefile for ruby | ||
|
||
# bundler/gem_tasks provides functionality like: | ||
# bundle exec rake build | ||
# bundle exec rake install | ||
# bundle exec rake release | ||
# | ||
require 'bundler/gem_tasks' | ||
require 'rake/clean' | ||
|
||
# cucumber/rake/task provides us with an easy way to call cucumber | ||
require 'cucumber/rake/task' | ||
|
||
CLOBBER.include('pkg') | ||
# rake/clean provides CLEAN/CLOBBER | ||
# http://www.virtuouscode.com/2014/04/28/rake-part-6-clean-and-clobber/ | ||
# CLEAN - list to let rake know what files can be cleaned up after build | ||
# CLOBBER - list to let rake know what files are final products of the build | ||
# | ||
require 'rake/clean' | ||
|
||
|
||
# Add the build dir to the list of items to clean up | ||
CLEAN.include('build') | ||
|
||
# We want to keep the build artifacts in the pkg dir | ||
CLOBBER.include('pkg') | ||
|
||
# Define a Rake::Task that will do initialization for us | ||
# See http://www.ultrasaurus.com/2009/12/creating-a-custom-rake-task/ | ||
task :init do | ||
FileUtils.mkdir_p 'build' | ||
end | ||
|
||
# Cucumber acceptance test task | ||
Cucumber::Rake::Task.new(:features) | ||
task :features => :init | ||
# Create new Cucumber::Rake::Task that will run Cucumber tests | ||
Cucumber::Rake::Task.new(:featuretests) | ||
|
||
# Define Rake::Task dependency - run :init before :featuretests | ||
task :featuretests => :init | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters