forked from mizzy/specinfra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (59 loc) · 2.29 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
version: "{build}"
image: Visual Studio 2019
platform:
- x64
environment:
bundle_gemfile: integration-test/Gemfile.winrm
bundler_url: https://rubygems.org/downloads/bundler-1.9.9.gem
matrix:
- ruby_version: "200"
- ruby_version: "21"
- ruby_version: "22"
- ruby_version: "23"
- ruby_version: "24"
- ruby_version: "25"
- ruby_version: "26"
- ruby_version: "27"
- ruby_version: "30"
clone_depth: 5
cache:
- C:\Ruby200\lib\ruby\gems\2.0.0 -> appveyor.yml
- C:\Ruby200\bin -> appveyor.yml
- C:\Ruby21\lib\ruby\gems\2.1.0 -> appveyor.yml
- C:\Ruby21\bin -> appveyor.yml
- C:\Ruby22\lib\ruby\gems\2.2.0 -> appveyor.yml
- C:\Ruby22\bin -> appveyor.yml
- C:\Ruby23\lib\ruby\gems\2.3.0 -> appveyor.yml
- C:\Ruby23\bin -> appveyor.yml
- C:\Ruby24\lib\ruby\gems\2.4.0 -> appveyor.yml
- C:\Ruby24\bin -> appveyor.yml
- C:\Ruby25\lib\ruby\gems\2.5.0 -> appveyor.yml
- C:\Ruby25\bin -> appveyor.yml
- C:\Ruby27\lib\ruby\gems\2.7.0 -> appveyor.yml
- C:\Ruby27\bin -> appveyor.yml
- C:\Ruby30\lib\ruby\gems\3.0.0 -> appveyor.yml
- C:\Ruby30\bin -> appveyor.yml
install:
- git submodule update --init --recursive
- ps: Enable-PSRemoting -Force
- winrm quickconfig -q
- winrm set winrm/config/client @{TrustedHosts="*"}
- winrm set winrm/config/client/auth @{Basic="true"}
- winrm set winrm/config/service/auth @{Basic="true"}
- winrm set winrm/config/service @{AllowUnencrypted="true"}
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
- echo %PATH%
- ruby --version
- gem --version
- appveyor DownloadFile -Url %bundler_url% -FileName bundler.gem
- gem install --local bundler.gem --no-document --force ## appveyor often stops `gem install bundler`..?
- ps: $PSVersionTable
build_script:
- set SSL_CERT_FILE=C:/ruby24-x64/ssl/cert.pem
- ruby -rfileutils -e 'FileUtils.rm_r(File.join(Gem.dir, "cache", "bundler")) if Dir.exists?(File.join(Gem.dir, "cache", "bundler"))'
- bundle install --jobs 3 --retry 3
- net user
- net localgroup
test_script:
- net user appveyor %WINDOWS_PASSWORD% # set by webui
- bundle exec rspec -fd --backtrace -r .\integration-test\winrm\spec_helper.rb .\integration-test\winrm