version: "{build}"
image: Visual Studio 2019
build: off

clone_depth: 5

branches:
  only:
    - main


environment:
  matrix:
    - RUBY_FOLDER_VER: "27"
      JEKYLL_VERSION:  "4.3"
      FARADAY_VERSION: "1.0"
    - RUBY_FOLDER_VER: "27"
      JEKYLL_VERSION:  "3.9.0"
      FARADAY_VERSION: "1.0"
    - RUBY_FOLDER_VER: "30"
      JEKYLL_VERSION:  "4.3"
      FARADAY_VERSION: "1.0"

install:
  - SET PATH=C:\Ruby%RUBY_FOLDER_VER%-x64\bin;%PATH%
  - bundle config set --local clean 'true'
  - bundle config set --local path 'vendor\bundle'
  - bundle install --retry 5 --jobs=%NUMBER_OF_PROCESSORS%

test_script:
  - ruby --version
  - gem --version
  - bundler --version
  - bash ./script/test

cache:
  # Cache will be invalidated if 'appveyor.yml' changes.
  - 'vendor\bundle -> appveyor.yml'
