~mrls/www

ref: 93e4136c9c24cc551e883e9a849b7550d213e679 www/Rakefile -rw-r--r-- 366 bytes View raw
93e4136cMauro Morales Add post 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'html-proofer'

desc 'Build the site'
task :build do
  sh 'jekyll', 'build'
end

desc 'Run the tests'
task :test do
  Rake::Task[:build].execute
  options = { :assume_extension => true }
  HTMLProofer.check_directory("./_site", options).run
end

desc 'Deploy'
task :deploy do
  Rake::Task[:test].execute
  sh "rsync -avz --delete _site/* #{ENV['DEST']}"
end