Skip to content

Commit

Permalink
Fix travis config file and add html-proofer test
Browse files Browse the repository at this point in the history
  • Loading branch information
jiop committed Sep 18, 2016
1 parent ef88f8e commit 912b0b9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/env bash
set -e # halt script on error
language: ruby
rvm:
- 2.1

before_script:
- chmod +x ./scripts/cibuild # or do this locally and commit

# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
script: ./scripts/cibuild

# branch whitelist, only for GitHub Pages
branches:
only:
- gh-pages # test the gh-pages branch

env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer

sudo: false # route your build to the container-based infrastructure for a faster build

bundle exec jekyll build
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source "https://rubygems.org"

gem "jekyll"
gem "html-proofer"
5 changes: 5 additions & 0 deletions scripts/cibuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e # halt script on error

bundle exec jekyll build
bundle exec htmlproofer ./_site --only-4xx --allow-hash-href

0 comments on commit 912b0b9

Please sign in to comment.