-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (20 loc) · 1000 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Travis configuration file
# Environment and script configuration copied from Jekyll Continuous Integration Guide (see https://jekyllrb.com/docs/continuous-integration/)
language: ruby
rvm:
- 2.3.0
install: bundle install # Install needed gems
script: jekyll build && htmlproofer ./_site --assume-extension --allow-hash-href --file-ignore /old.*/ # Build with Jekyll & test with HTML Proofer
# In particular these HTML Proofer parameters
# --assume-extension - Fix needing the .html extension on links
# --allow-hash-href - Fix href="#" being marked as invalid
# --file-ignore /old.*/ - Fix testing the site archives in /old and /old2
# branch whitelist, only for GitHub Pages
branches:
only:
- gh-pages # test the gh-pages branch
- /pages-(.*)/ # test every branch which starts with "pages-"
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
sudo: false # route your build to the container-based infrastructure for a faster build