forked from jackregnart/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (30 loc) · 892 Bytes
/
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
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
APP_RAKEFILE = File.expand_path("../test/app/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
namespace :shoppe do
desc 'Publish the release notes'
task :changelog do
system "scp -P 32032 CHANGELOG.md [email protected]:/app/docs/CHANGELOG.md"
end
desc "Publish RDoc documentation from doc to api.tryshoppe.com"
task :docs do
if File.exist?('Rakefile')
system "yard"
system "ssh [email protected] rm -Rf /var/www/shoppe-api"
system "scp -r doc [email protected]:/var/www/shoppe-api"
system "rm -Rf doc"
end
end
end