---
env:
  - IMAGE="yadm/jekyll:2019-10-17"
language: minimal
services:
  - docker
before_install:
  - docker pull $IMAGE
  - docker create -t --name yadm-website --entrypoint test/validate $IMAGE
  - docker cp ./ yadm-website:/srv/jekyll
script:
  - docker start yadm-website -a
branches:  # necessary to force builds of gh-pages:
  only:
    - gh-pages
    - "/.*/"
