Skip to content

Commit 223d037

Browse files
committed
Merge pull request #153 from johnelse/caching
Turn on dependency caching
2 parents bed4606 + 6cc8837 commit 223d037

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.travis-ci.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
TEST_BASEURL="baseurl_travis_test"
22

3-
echo "Installing dependencies..."
4-
which jekyll || gem install github-pages
5-
which htmlproof || gem install html-proofer
6-
73
echo "Running jekyll's sanity test..."
8-
jekyll doctor
4+
bundle exec jekyll doctor
95

106
echo "Building site (with modified baseurl)..."
117
cp _config.yml test_config.yml
128
echo "baseurl: /${TEST_BASEURL}" >> test_config.yml
13-
jekyll build --config test_config.yml
9+
bundle exec jekyll build --config test_config.yml
1410
rm test_config.yml
1511

1612
echo "Running htmlproof over generated site..."
1713
mv _site ${TEST_BASEURL}
1814
mkdir _site
1915
mv ${TEST_BASEURL} _site
2016
export NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up install of html-proofer
21-
htmlproof --check-html ./_site
17+
bundle exec htmlproof --check-html ./_site

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: ruby
2+
cache: bundler
23
rvm:
34
- 2.1.0
45
script: bash -ex .travis-ci.sh

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages'
3+
gem 'html-proofer'

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ redcarpet:
33
extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
44
highlighter: pygments
55
permalink: /:title
6+
exclude: [vendor]

0 commit comments

Comments
 (0)