add sanity checks for docs and middleman build

This commit is contained in:
Victoria Jeffrey 2016-09-28 12:10:54 -04:00
parent 9a816b2b7d
commit 12b69280b1
2 changed files with 6 additions and 0 deletions

View file

@ -267,4 +267,7 @@ end
desc 'Create all docs in docs/ from source code'
task :docs do
run_tasks_in_namespace :docs
Verify.file('www/source/docs/reference/README.html.md')
Verify.file('www/source/docs/reference/cli.html.md')
Verify.file('www/source/docs/reference/resources.html.md')
end

View file

@ -35,6 +35,9 @@ namespace :www do
Bundler.with_clean_env {
sh('cd www/ && bundle install && bundle exec middleman build')
}
Verify.file('www/build/index.html')
Verify.file('www/build/javascripts/all.js')
Verify.file('www/build/stylesheets/site.css')
end
desc 'Assemble the website site from middleman and the tutorial'