Skip to content

Commit

Permalink
Shamelessly stealing from @sroberts
Browse files Browse the repository at this point in the history
  • Loading branch information
krmaxwell committed Mar 12, 2017
1 parent fb24580 commit c5f1260
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ machine:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
ruby:
version: 2.1.4
dependencies:
override:
- bundle install
test:
override:
- ./script/cibuild
26 changes: 24 additions & 2 deletions script/cibuild
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
#!/usr/bin/env bash
set -e # halt script on error

bundle exec jekyll build
bundle exec htmlproof ./_site --only-4xx
title () {
echo ""
echo "-------------------------------"
echo $1
echo "-------------------------------"
echo ""
}

title "Building Site"
bundle install
bundle exec jekyll build --drafts

title "Validating Markdown"
bundle exec mdl -c ./.mdlrc _posts

title "Validating HTML"
bundle exec htmlproofer ./_site --check-html --check-favicon --disable-external

# DISABLED: Due to not using custom URL
# title "Checking GitHub Pages is Healthy"
# bundle exec github-pages health-check

title "Cleaning Up"
rm -Rf _site

1 comment on commit c5f1260

@sroberts
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.