Skip to content

Commit 4764b68

Browse files
[ADD] Adding travis as build tester (#12)
* [Add] Travis as CI. Adding html-proofer (https://github.com/gjtorikian/html-proofer) for linting prepared static html build.
1 parent 4ee9773 commit 4764b68

File tree

6 files changed

+49
-0
lines changed

6 files changed

+49
-0
lines changed

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: ruby
2+
rvm:
3+
- 2.3.3
4+
5+
script:
6+
- ./scripts/build
7+
- ./scripts/test
8+
9+
branches:
10+
only:
11+
- master
12+
- /master-(.*)/ # test every branch which starts with "pages-"

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ gem "jekyll", "3.3.1"
1313

1414
# This is the default theme for new Jekyll sites. You may change this to anything you like.
1515
gem "minima", "~> 2.0"
16+
gem "html-proofer"
1617

1718
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
1819
# uncomment the line below. To upgrade, run `bundle update github-pages`.

Gemfile.lock

+31
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
activesupport (5.1.0)
5+
concurrent-ruby (~> 1.0, >= 1.0.2)
6+
i18n (~> 0.7)
7+
minitest (~> 5.1)
8+
tzinfo (~> 1.1)
49
addressable (2.5.0)
510
public_suffix (~> 2.0, >= 2.0.2)
611
colorator (1.1.0)
12+
colored (1.2)
13+
concurrent-ruby (1.0.5)
14+
ethon (0.10.1)
15+
ffi (>= 1.3.0)
716
ffi (1.9.14)
817
forwardable-extended (2.6.0)
18+
html-proofer (3.6.0)
19+
activesupport (>= 4.2, < 6.0)
20+
addressable (~> 2.3)
21+
colored (~> 1.2)
22+
mercenary (~> 0.3.2)
23+
nokogiri (~> 1.5)
24+
parallel (~> 1.3)
25+
typhoeus (~> 0.7)
26+
yell (~> 2.0)
27+
i18n (0.8.1)
928
jekyll (3.3.1)
1029
addressable (~> 2.4)
1130
colorator (~> 1.0)
@@ -29,8 +48,13 @@ GEM
2948
rb-fsevent (~> 0.9, >= 0.9.4)
3049
rb-inotify (~> 0.9, >= 0.9.7)
3150
mercenary (0.3.6)
51+
mini_portile2 (2.1.0)
3252
minima (2.1.0)
3353
jekyll (~> 3.3)
54+
minitest (5.10.1)
55+
nokogiri (1.7.1)
56+
mini_portile2 (~> 2.1.0)
57+
parallel (1.11.2)
3458
pathutil (0.14.0)
3559
forwardable-extended (~> 2.6)
3660
public_suffix (2.0.4)
@@ -40,11 +64,18 @@ GEM
4064
rouge (1.11.1)
4165
safe_yaml (1.0.4)
4266
sass (3.4.23)
67+
thread_safe (0.3.6)
68+
typhoeus (0.8.0)
69+
ethon (>= 0.8.0)
70+
tzinfo (1.2.3)
71+
thread_safe (~> 0.1)
72+
yell (2.0.7)
4373

4474
PLATFORMS
4575
ruby
4676

4777
DEPENDENCIES
78+
html-proofer
4879
jekyll (= 3.3.1)
4980
jekyll-feed (~> 0.6)
5081
minima (~> 2.0)

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ gems:
3333
exclude:
3434
- Gemfile
3535
- Gemfile.lock
36+
- vendor
3637

3738
google_analytics: UA-57792488-6
3839
defaults:

scripts/build

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
bundle exec jekyll build

scripts/test

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bundle exec htmlproofer ./_site

0 commit comments

Comments
 (0)