From f95f5e536b2e77dfe605ca0462f189456e2e621d Mon Sep 17 00:00:00 2001 From: Christopher Wells Date: Fri, 26 Aug 2016 16:42:23 -0400 Subject: [PATCH] Add automated HTML tests (#70) * Add gemfile lock to gitingore Add a rule to the gitignore file to ignore the Gemfile.lock generated file. * Add automated tests Add automated tests of the website through Travis CI. --- .gitignore | 1 + .travis.yml | 11 +++++++++++ Gemfile | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 .travis.yml create mode 100644 Gemfile diff --git a/.gitignore b/.gitignore index 546ecb0..35b2bd6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ _site/ node_modules/ .jekyll-metadata *.patch +Gemfile.lock diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b9455aa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: ruby +rvm: + - 2.2 +sudo: false +script: + - bundle exec jekyll build + - bundle exec htmlproofer '_site/' --allow-hash-href --check-html + +env: + global: + - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..29b3b7a --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' +gem 'jekyll' +gem 'jekyll-redirect-from' +gem 'html-proofer'