From e929dc0426d2f7be11f9f6cb0da61f1f5aa38139 Mon Sep 17 00:00:00 2001 From: Adam Schmideg Date: Tue, 17 Sep 2019 14:10:23 +0200 Subject: [PATCH] Initial travis config with link checking --- .travis.yml | 18 ++++++++++++++++++ Gemfile | 1 + _config.yml | 8 ++++---- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..299c6d0478 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: ruby +rvm: + - 2.5.3 + +before_script: + - gem install html-proofer + +# Assume bundler is being used, therefore +# the `install` step will run `bundle install` by default. +script: + - bundle exec jekyll build + - bundle exec htmlproofer ./_site --assume-extension + +env: + global: + - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer + +cache: bundler # caching bundler gem packages will speed up build \ No newline at end of file diff --git a/Gemfile b/Gemfile index d6fed7efaa..eef36123dd 100644 --- a/Gemfile +++ b/Gemfile @@ -30,4 +30,5 @@ gem "wdm", "~> 0.1.0" if Gem.win_platform? group :development, :test do gem "pry" + gem "html-proofer" end \ No newline at end of file diff --git a/_config.yml b/_config.yml index 4d98e8efcd..3e13f3e934 100644 --- a/_config.yml +++ b/_config.yml @@ -15,17 +15,17 @@ defaults: - scope: path: "*" values: - root: "../.." + root: ".." - scope: path: "*/*" values: - root: "../../.." + root: "../.." - scope: path: "*/*/*" values: - root: "../../../.." + root: "../../.." -default_root: "../../.." +default_root: "../.." collections_dir: docs collections: