Rakefile in fanforce-app-factory-1.7.1 vs Rakefile in fanforce-app-factory-2.0.0.rc1
- old
+ new
@@ -1,17 +1,22 @@
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'fileutils'
include FileUtils
-# Default Rake task is compile
-#task :default => :compile
+task :run_test do
+ Rake::Task['test'].execute
+ puts '---------------------------------------------------------------------'
+ puts 'TESTS PASSED... READY TO BUILD...'
+ puts '---------------------------------------------------------------------'
+end
+task :build => :run_test
+task :default => :build
########################################################################
Rake::TestTask.new do |t|
t.libs.push 'lib'
t.libs.push 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
-