Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add Travis tests for site #2088

Closed
wants to merge 6 commits into from

2 participants

@penibelst

This should prevent the documentation from nasty 404s.

@penibelst

My evil plan doesn’t work.

@penibelst penibelst closed this
@parkr
Owner

This has increased the build time significantly. Installing html-proofer and its dependencies took a very long time, even though the rake task failed. Any way to speed this up? If all builds (even builds without docs changes) have to run all of these, I'd rather skip them.

@penibelst

Installing html-proofer and its dependencies took a very long time.

This is true. I thought Jekyll’s and Proofer’s dependencies intersect. But Proofer alone take up to 5 minutes for installation.

@penibelst penibelst referenced this pull request
Closed

Test docs with Proofer #2311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 21, 2014
  1. @penibelst

    Add test group

    penibelst authored
  2. @penibelst

    Add site:test task

    penibelst authored
  3. @penibelst

    Expand build script

    penibelst authored
  4. @penibelst

    Keep only one Jekyll

    penibelst authored
  5. @penibelst

    Start test with site

    penibelst authored
  6. @penibelst

    Change jekyll path

    penibelst authored
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 0 deletions.
  1. +5 −0 Gemfile
  2. +11 −0 Rakefile
  3. +1 −0  script/cibuild
View
5 Gemfile
@@ -1,2 +1,7 @@
source 'https://rubygems.org'
gemspec
+
+group :test do
+ gem 'rake'
+ gem 'html-proofer'
+end
View
11 Rakefile
@@ -3,6 +3,7 @@ require 'rake'
require 'rdoc'
require 'date'
require 'yaml'
+require 'html/proofer'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w[lib]))
@@ -243,6 +244,16 @@ namespace :site do
puts "Created #{filename}"
end
end
+
+ desc 'Test the site with Proofer'
+ task :test do
+ Dir.chdir('site') do
+ puts 'Building the site...'
+ sh '../bin/jekyll build --trace'
+ puts 'Proofing the site...'
+ HTML::Proofer.new('./_site').run
+ end
+ end
end
#############################################################################
View
1  script/cibuild
@@ -1,5 +1,6 @@
#! /bin/bash
+bundle exec rake site:test
script/branding
script/bootstrap > /dev/null 2>&1
bundle exec rake
Something went wrong with that request. Please try again.