Permalink
Browse files

Updated Rakefile to run my fork of Jekyll with the "test" task.

  • Loading branch information...
appden committed Sep 12, 2009
1 parent c72d09b commit 3c6aa786690d7a6555aaccabc32947962a9fa90a
Showing with 11 additions and 3 deletions.
  1. +11 −3 Rakefile
View
@@ -1,13 +1,21 @@
+def jekyll(opts = "", path = "")
+ sh "rm -rf _site"
+ sh path + "jekyll " + opts
+end
+
desc "Build site using Jekyll"
task :build do
- sh "rm -rf _site"
- sh "jekyll"
+ jekyll
end
desc "Serve on Localhost with port 4000"
task :default do
- sh "jekyll --server --auto"
+ jekyll("--server --auto")
+end
+
+task :test do
+ jekyll("--server --auto", "../jekyll/bin/")
end
desc "Deploy to Dev"

0 comments on commit 3c6aa78

Please sign in to comment.