Initial travis config with link checking

This commit is contained in:
Adam Schmideg 2019-09-17 14:10:23 +02:00
parent d48d266329
commit e929dc0426
3 changed files with 23 additions and 4 deletions

18
.travis.yml Normal file
View file

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

View file

@ -30,4 +30,5 @@ gem "wdm", "~> 0.1.0" if Gem.win_platform?
group :development, :test do
gem "pry"
gem "html-proofer"
end

View file

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