-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
52 lines (42 loc) · 1.39 KB
/
.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# https://jekyllrb.com/docs/continuous-integration/travis-ci/
language: ruby
cache:
bundler: true
directories:
# https://github.com/gjtorikian/html-proofer/wiki/Using-HTMLProofer-From-Ruby-and-Travis
- $TRAVIS_BUILD_DIR/tmp/.htmlproofer #https://github.com/gjtorikian/html-proofer/issues/381
# https://blog.travis-ci.com/2013-12-05-speed-up-your-builds-cache-your-dependencies/
- node_modules
- _site
# gemfile: docs/Gemfile
rvm:
- 2.7.1
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
# before_script:
# - chmod +x ./script/cibuild # or do this locally and commit
# before_install: gem install bundler
# install: gem install jekyll html-proofer
script:
# - bundle exec rake default
- bundle exec rake html_proofer
# - bundle exec rake rubocop
# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
# script: ./script/cibuild
# script: jekyll build && htmlproofer ./_site
# 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
addons:
apt:
packages:
- libcurl4-openssl-dev # required to avoid SSL errors
sudo: false # route your build to the container-based infrastructure for a faster build