Skip to content

Commit ed3967a

Browse files
committed
Make CircleCI build and test the Jekyll site.
1 parent 418d020 commit ed3967a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.circleci/config.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
build:
88
docker:
99
# specify the version you desire here
10-
- image: circleci/node:9
10+
- image: starefossen/ruby-node:2-10
1111

1212
steps:
1313
- checkout
@@ -18,3 +18,14 @@ jobs:
1818
- run: cd unit_testing && npm test
1919

2020
# TODO: add caching to speed things up.
21+
- run:
22+
name: Jekyll deps
23+
command: bundle install
24+
25+
- run:
26+
name: Build
27+
command: bundle exec jekyll build --verbose
28+
29+
- run:
30+
name: Test
31+
command: bundle exec htmlproofer ./_site --assume-extension --check-html --disable-external

Gemfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source "https://rubygems.org"
2-
2+
33
# Hello! This is where you manage which Jekyll version is used to run.
44
# When you want to use a different version, change it below, save the
55
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
@@ -16,3 +16,6 @@ end
1616

1717
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
1818
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
19+
20+
# HTML Checking
21+
gem 'html-proofer'

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ links:
4545
markdown: kramdown
4646

4747
# Exclude code for Node.js and Q_and_A
48-
exclude: [ 'Node', 'Q_and_A' ]
48+
exclude: [ 'Node', 'Q_and_A', 'unit_testing', 'node_modules' ]
4949

5050
# Include future videos (used for 'Upcoming Streams' section).
5151
future: true

0 commit comments

Comments
 (0)