0
@@ -10,28 +10,6 @@ plugin_name = 'inherit_views'
0
- # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
0
- sh "rake garlic:all > garlic_report.txt"
0
- # send abridged rpeort
0
- report = File.read('garlic_report.txt').sub(/^.*?==========/m, '==========')
0
- report = "garlic report for #{plugin_name}\n#{`git log -n 1 --pretty=oneline --no-color`}\n" + report
0
- File.open('garlic_report.txt', 'w+') {|f| f << report }
0
- sh "scp -i ~/.ssh/ardes garlic_report.txt ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}_garlic_report.txt"
0
- # build doc and send that
0
- cd "garlic/work/edge/vendor/plugins/#{plugin_name}" do
0
- sh "scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}"
0
- puts File.read('garlic_report.txt')
0
desc "Run the specs for #{plugin_name}"
0
Spec::Rake::SpecTask.new(:spec) do |t|
0
t.spec_files = FileList['spec/**/*_spec.rb']
0
@@ -89,13 +67,13 @@ namespace :doc do
0
task :all => ["spec:doc:html", "spec:doc", "spec:rcov", "doc"]
0
-# load up garlic if it's here
0
-if File.directory?(File.join(File.dirname(__FILE__), 'garlic'))
0
- require File.join(File.dirname(__FILE__), 'garlic/lib/garlic_tasks')
0
- require File.join(File.dirname(__FILE__), 'garlic')
0
-desc "clone the garlic repo (for running ci tasks)"
0
- sh "git clone git://github.com/ianwhite/garlic.git garlic"
0
+ # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
0
+ sh "garlic clean && mkdir -p .garlic && (garlic all > .garlic/report.txt)"
0
+ `scp -i ~/.ssh/ardes .garlic/report.txt ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}_garlic_report.txt`
0
+ cd ".garlic/2.2-stable/vendor/plugins/#{plugin_name}" do
0
+ `scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}`
0
+ puts "The build is GOOD"
0
\ No newline at end of file