0
@@ -10,28 +10,6 @@ plugin_name = 'response_for'
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
@@ -99,3 +77,27 @@ 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
+ `cp garlic_example.rb garlic.rb`
0
+ sh "rake garlic:run_targets TARGET=edge > garlic_report.txt"
0
+ # send abridged report
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
\ No newline at end of file