Skip to content
This repository was archived by the owner on Aug 20, 2019. It is now read-only.

Commit 588ac5a

Browse files
committed
Fixes #17: Add basic CI support.
1 parent b35e83f commit 588ac5a

File tree

6 files changed

+59
-3
lines changed

6 files changed

+59
-3
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: ruby
2+
rvm:
3+
- 2.3.1

Gemfile

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
source "https://rubygems.org"
22
ruby RUBY_VERSION
33

4+
group :test do
5+
gem "html-proofer"
6+
gem 'rake'
7+
end
8+
49
# Hello! This is where you manage which Jekyll version is used to run.
510
# When you want to use a different version, change it below, save the
611
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:

Gemfile.lock

+39-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
activesupport (4.2.7.1)
5+
i18n (~> 0.7)
6+
json (~> 1.7, >= 1.7.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.3, >= 0.3.4)
9+
tzinfo (~> 1.1)
10+
addressable (2.4.0)
411
colorator (1.1.0)
12+
colored (1.2)
13+
ethon (0.9.0)
14+
ffi (>= 1.3.0)
515
ffi (1.9.14)
616
forwardable-extended (2.6.0)
17+
html-proofer (3.0.6)
18+
activesupport (~> 4.2)
19+
addressable (~> 2.3)
20+
colored (~> 1.2)
21+
mercenary (~> 0.3.2)
22+
nokogiri (~> 1.5)
23+
parallel (~> 1.3)
24+
typhoeus (~> 0.7)
25+
yell (~> 2.0)
26+
i18n (0.7.0)
727
jekyll (3.2.1)
828
colorator (~> 1.0)
929
jekyll-sass-converter (~> 1.0)
@@ -18,31 +38,48 @@ GEM
1838
sass (~> 3.4)
1939
jekyll-watch (1.5.0)
2040
listen (~> 3.0, < 3.1)
41+
json (1.8.3)
2142
kramdown (1.12.0)
2243
liquid (3.0.6)
2344
listen (3.0.8)
2445
rb-fsevent (~> 0.9, >= 0.9.4)
2546
rb-inotify (~> 0.9, >= 0.9.7)
2647
mercenary (0.3.6)
48+
mini_portile2 (2.1.0)
2749
minima (1.0.1)
50+
minitest (5.9.0)
51+
nokogiri (1.6.8)
52+
mini_portile2 (~> 2.1.0)
53+
pkg-config (~> 1.1.7)
54+
parallel (1.9.0)
2855
pathutil (0.14.0)
2956
forwardable-extended (~> 2.6)
57+
pkg-config (1.1.7)
58+
rake (10.4.2)
3059
rb-fsevent (0.9.7)
3160
rb-inotify (0.9.7)
3261
ffi (>= 0.5.0)
3362
rouge (1.11.1)
3463
safe_yaml (1.0.4)
3564
sass (3.4.22)
65+
thread_safe (0.3.5)
66+
typhoeus (0.8.0)
67+
ethon (>= 0.8.0)
68+
tzinfo (1.2.2)
69+
thread_safe (~> 0.1)
70+
yell (2.0.6)
3671

3772
PLATFORMS
3873
ruby
3974

4075
DEPENDENCIES
76+
html-proofer
4177
jekyll (= 3.2.1)
4278
minima
79+
rake
4380

4481
RUBY VERSION
45-
ruby 2.0.0p648
82+
ruby 2.3.1p112
4683

4784
BUNDLED WITH
48-
1.13.0
85+
1.13.1

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ You can skip this step if you already have Ruby and Bundler installed.
2121
3. You should see the built site.
2222
4. Making changes to the source will automatically regenerate Jekyll content.
2323
5. Refresh the page to see the changes.
24+
25+
## Test
26+
1. Run `rake test`.

Rakefile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'html-proofer'
2+
3+
task :test do
4+
sh "bundle exec jekyll build"
5+
HTMLProofer.check_directory("./docs", {
6+
:external_only => true
7+
}).run
8+
end

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ description: >
2323
2424
baseurl: "/i-like-hillary-but" # the subpath of your site, e.g. /blog
2525
url: "https://devprogress.us" # the base hostname & protocol for your site
26-
exclude: [ README.md, Gemfile, Gemfile.lock, LICENSE ]
26+
exclude: [ README.md, Gemfile, Gemfile.lock, LICENSE, Rakefile ]
2727

2828
twitter_username: hillaryclinton
2929
github_username: devprogress

0 commit comments

Comments
 (0)