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.
This commit is contained in:
Christopher Wells 2016-08-26 16:42:23 -04:00 committed by est31
parent 1f8b04a0b1
commit f95f5e536b
3 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ _site/
node_modules/
.jekyll-metadata
*.patch
Gemfile.lock

11
.travis.yml Normal file
View File

@ -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

4
Gemfile Normal file
View File

@ -0,0 +1,4 @@
source 'https://rubygems.org'
gem 'jekyll'
gem 'jekyll-redirect-from'
gem 'html-proofer'