From 2aa407954d2e1d655ba4808d554b97072a76c077 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Sun, 21 Oct 2018 20:40:00 +0530 Subject: [PATCH] Setup AppVeyor builds --- README.md | 6 +++++- appveyor.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 appveyor.yml diff --git a/README.md b/README.md index 785f66e..3dbb87f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,11 @@ Streamline your writing in Jekyll with some commands. -[![Build Status](https://travis-ci.org/jekyll/jekyll-compose.svg?branch=master)](https://travis-ci.org/jekyll/jekyll-compose) +[![Linux Build Status](https://img.shields.io/travis/jekyll/jekyll-compose/master.svg?label=Linux%20build)][travis] +[![Windows Build status](https://img.shields.io/appveyor/ci/jekyll/jekyll-compose/master.svg?label=Windows%20build)][appveyor] + +[travis]: https://travis-ci.org/jekyll/jekyll-compose +[appveyor]: https://ci.appveyor.com/project/jekyll/jekyll-compose ## Installation diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..6e25691 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,28 @@ +version: "{build}" +clone_depth: 5 +branches: + only: + - master + +build: off + +environment: + matrix: + - RUBY_FOLDER_VER: "25-x64" + - RUBY_FOLDER_VER: "25" + - RUBY_FOLDER_VER: "24" + - RUBY_FOLDER_VER: "23" + +install: + - SET PATH=C:\Ruby%RUBY_FOLDER_VER%\bin;%PATH% + - bundle install --retry 5 --jobs=%NUMBER_OF_PROCESSORS% --clean --path vendor\bundle + +test_script: + - ruby --version + - gem --version + - bundler --version + - bash ./script/cibuild + +cache: + # If one of the files after the right arrow changes, cache will be invalidated + - 'vendor\bundle -> appveyor.yml,Gemfile,jekyll-compose.gemspec'