2019-04-26 01:13:21 +00:00
|
|
|
os: Visual Studio 2017
|
2016-01-15 04:22:48 +00:00
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
|
2019-02-06 17:14:53 +00:00
|
|
|
# Use this to preseve the build VM after the build finishes.
|
|
|
|
# Note that the appveyor builds will appear to hang; check the build log for details.
|
2019-02-06 16:45:19 +00:00
|
|
|
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
|
2019-02-06 17:14:53 +00:00
|
|
|
# on_finish:
|
|
|
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
2019-02-06 16:45:19 +00:00
|
|
|
|
2016-01-15 04:22:48 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
2018-11-08 17:00:14 +00:00
|
|
|
- name: unit-tests-ruby-2.4.4
|
2019-04-25 23:31:57 +00:00
|
|
|
ruby_version: "24-x64"
|
2019-04-11 19:25:01 +00:00
|
|
|
- name: unit-tests-ruby-2.5
|
2019-04-25 23:31:57 +00:00
|
|
|
ruby_version: "25-x64"
|
2019-04-11 19:25:01 +00:00
|
|
|
- name: unit-tests-ruby-2.6
|
2019-04-25 23:31:57 +00:00
|
|
|
ruby_version: "26-x64"
|
2018-11-08 17:00:14 +00:00
|
|
|
- name: functional-tests-1
|
2019-04-25 23:31:57 +00:00
|
|
|
ruby_version: "26-x64"
|
2018-11-08 17:00:14 +00:00
|
|
|
- name: functional-tests-2
|
2019-04-25 23:31:57 +00:00
|
|
|
ruby_version: "26-x64"
|
2018-11-08 17:00:14 +00:00
|
|
|
- name: functional-tests-3
|
2019-04-25 23:31:57 +00:00
|
|
|
ruby_version: "26-x64"
|
2016-01-15 04:22:48 +00:00
|
|
|
clone_folder: c:\projects\inspec
|
|
|
|
clone_depth: 1
|
2019-04-25 23:31:57 +00:00
|
|
|
# Disable MSBuild mode entirely
|
|
|
|
build: off
|
2018-10-10 17:27:10 +00:00
|
|
|
skip_commits:
|
|
|
|
# version bumps by Expeditor happen as a separate commit after the merge, we can skip
|
|
|
|
author: Chef Expeditor
|
|
|
|
# if ONLY the files listed below are changed in a commit, skip
|
2018-10-19 13:01:00 +00:00
|
|
|
#
|
|
|
|
# Update jq: Currently this does not as expected and is blocking any builds that have any
|
|
|
|
# files matching the paths below.
|
|
|
|
#
|
|
|
|
# files:
|
|
|
|
# - '*.md'
|
|
|
|
# - docs/**/*
|
|
|
|
# - examples/**/*
|
|
|
|
# - MAINTAINERS.toml
|
2018-10-10 17:27:10 +00:00
|
|
|
|
2016-01-15 04:22:48 +00:00
|
|
|
skip_tags: true
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2019-04-11 19:25:01 +00:00
|
|
|
- 3-stable
|
2016-01-15 04:22:48 +00:00
|
|
|
|
2016-04-29 23:14:37 +00:00
|
|
|
cache:
|
|
|
|
- vendor/bundle -> appveyor.yml
|
|
|
|
|
2016-01-15 04:22:48 +00:00
|
|
|
install:
|
|
|
|
- systeminfo
|
|
|
|
- winrm quickconfig -q
|
2019-04-25 23:39:35 +00:00
|
|
|
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
2016-01-15 04:22:48 +00:00
|
|
|
- echo %PATH%
|
|
|
|
- ruby --version
|
|
|
|
- gem --version
|
|
|
|
- bundler --version
|
2016-02-22 13:23:23 +00:00
|
|
|
- ruby -r rubygems -e "p Gem.path"
|
2016-01-15 04:22:48 +00:00
|
|
|
|
|
|
|
build_script:
|
2016-09-27 18:00:01 +00:00
|
|
|
- bundle install --path=vendor/bundle --without integration tools maintenance deploy
|
2018-09-12 22:04:16 +00:00
|
|
|
- if not exist C:\tmp mkdir C:\tmp
|
2016-01-15 04:22:48 +00:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- SET SPEC_OPTS=--format progress
|
2019-05-06 21:47:16 +00:00
|
|
|
- SET SLOW=1
|
2016-01-15 04:22:48 +00:00
|
|
|
- bundle exec rake
|
2018-09-12 22:04:16 +00:00
|
|
|
|
|
|
|
for:
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
2018-11-08 17:00:14 +00:00
|
|
|
- name: functional-tests-1
|
2018-09-12 22:04:16 +00:00
|
|
|
test_script:
|
|
|
|
- SET SPEC_OPTS=--format progress
|
2018-11-08 17:00:14 +00:00
|
|
|
- SET WORKER_NUMBER=1
|
2019-05-06 21:47:16 +00:00
|
|
|
- SET SLOW=1
|
2018-11-08 17:00:14 +00:00
|
|
|
- bundle exec rake test:functional:windows
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- name: functional-tests-2
|
|
|
|
test_script:
|
|
|
|
- SET SPEC_OPTS=--format progress
|
|
|
|
- SET WORKER_NUMBER=2
|
2019-05-06 21:47:16 +00:00
|
|
|
- SET SLOW=1
|
2018-11-08 17:00:14 +00:00
|
|
|
- bundle exec rake test:functional:windows
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- name: functional-tests-3
|
|
|
|
test_script:
|
|
|
|
- SET SPEC_OPTS=--format progress
|
|
|
|
- SET WORKER_NUMBER=3
|
2019-05-06 21:47:16 +00:00
|
|
|
- SET SLOW=1
|
2018-09-12 22:04:16 +00:00
|
|
|
- bundle exec rake test:functional:windows
|