forked from inspec/inspec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
98 lines (90 loc) · 2.45 KB
/
appveyor.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
os: Visual Studio 2017
platform:
- x64
# 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.
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
environment:
matrix:
- name: unit-tests-ruby-2.4.4
ruby_version: "24-x64"
- name: unit-tests-ruby-2.5
ruby_version: "25-x64"
- name: unit-tests-ruby-2.6
ruby_version: "26-x64"
- name: functional-tests-1
ruby_version: "26-x64"
- name: functional-tests-2
ruby_version: "26-x64"
- name: functional-tests-3
ruby_version: "26-x64"
clone_folder: c:\projects\inspec
clone_depth: 1
# Disable MSBuild mode entirely
build: off
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
#
# 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
skip_tags: true
branches:
only:
- master
- 3-stable
cache:
- vendor/bundle -> appveyor.yml
install:
- systeminfo
- winrm quickconfig -q
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
- echo %PATH%
- ruby --version
- gem --version
- bundler --version
- ruby -r rubygems -e "p Gem.path"
build_script:
- bundle install --path=vendor/bundle --without integration tools maintenance deploy
- if not exist C:\tmp mkdir C:\tmp
test_script:
- SET SPEC_OPTS=--format progress
- SET SLOW=1
- bundle exec rake
for:
-
matrix:
only:
- name: functional-tests-1
test_script:
- SET SPEC_OPTS=--format progress
- SET WORKER_NUMBER=1
- SET SLOW=1
- bundle exec rake test:functional:windows
-
matrix:
only:
- name: functional-tests-2
test_script:
- SET SPEC_OPTS=--format progress
- SET WORKER_NUMBER=2
- SET SLOW=1
- bundle exec rake test:functional:windows
-
matrix:
only:
- name: functional-tests-3
test_script:
- SET SPEC_OPTS=--format progress
- SET WORKER_NUMBER=3
- SET SLOW=1
- bundle exec rake test:functional:windows