aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.travis.yml
blob: 704ca111ce331866671ea6346d20843dcfe554b9 (plain) (blame)
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
os: linux
dist: bionic
language: ruby

# Travis doesn't build gh-pages by default:
# https://docs.travis-ci.com/user/customizing-the-build/#building-specific-branches
branches:
  only:
    - gh-pages
    - /.*/

jobs:
  fast_finish: true

  include:
    - stage: Build
      name: Build using Bundler
      install: bundle install --jobs=3 --retry=3
      script: bundle exec jekyll build --config _config.yml,_config_dev.yml --drafts
    - name: Build using latest github-pages
      install:
        # `jekyll build` seems to be using Bundler if Gemfile is present:
        - rm -f -- Gemfile Gemfile.lock
        - gem install github-pages
      script: jekyll build
    - stage: Verify
      name: Check integrity
      install: bundle install --jobs=3 --retry=3
      script:
        - nohup bundle exec jekyll serve --config _config.yml,_config_dev.yml --drafts &
        - sleep 3 && wget --no-verbose --recursive --convert-links --adjust-extension --directory-prefix=/tmp -- http://localhost:4000/