sudo: false
language: ruby
cache: bundler
rvm:
- 2.2
- 2.3
- 2.4
- 2.5
matrix:
  include:
  # GitHub Pages
  - rvm: 2.4.0
    env:
    - JEKYLL_VERSION=3.6.2
    - GITHUB_PAGES=1 # Only set on one build in matrix
env:
  matrix:
  - JEKYLL_VERSION=3.6
branches:
  only:
  - master
  - /^v\d+\.\d+\.\d+/
git:
  depth: 1000
before_install: 
- gem update --system
install:
- travis_retry script/bootstrap
script: script/cibuild
notifications:
  irc:
    on_success: change
    on_failure: change
    channels:
    - irc.freenode.org#jekyll
    template:
    - "%{repository}#%{build_number} %{message} %{build_url}"
  email:
    on_success: never
    on_failure: change
deploy:
  provider: rubygems
  api_key:
    secure: O8fGRnM6OJCqC2BlVE1BqYfq5aR19ulpiHhQwRiHbtSCh8H4rYt7FLsuOwSTtRQjhWYRRSpdRt2ilfQ6PY6Jx1UkxZq5zo9QAPQ9tKxiFTm7gBpZAiAgb06eyaMBSzyQ8qe2qccaFI6CiZhsiaGMsdKsWuYpuoPmdLPd7aDyYJs=
  gem: jekyll-sitemap
  on:
    tags: true
    repo: jekyll/jekyll-sitemap
    condition: "$GITHUB_PAGES == 1"