forked from puppetlabs/pdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
70 lines (63 loc) · 2.16 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
---
# version: 1.0.{build}-{branch}
environment:
LOG_SPEC_ORDER: true
matrix:
# FIXME: enable ruby 2.5 on windows once puppet and puppet-module gems have unpinned ffi
# - RUBY_VERSION: 25-x64
# USE_MSYS: true
# SUITES: "spec"
# BUNDLE_JOBS: 4
- RUBY_VERSION: 24-x64
USE_MSYS: true
SUITES: "acceptance:local"
BUNDLE_JOBS: 4
- RUBY_VERSION: 24-x64
USE_MSYS: true
SUITES: "spec"
BUNDLE_JOBS: 1
- RUBY_VERSION: 23-x64
USE_CYGWIN: true
SUITES: "spec"
BUNDLE_JOBS: 1
- RUBY_VERSION: 21-x64
USE_CYGWIN: true
SUITES: "spec"
BUNDLE_JOBS: 1
install:
- ps: |
if ($ENV:USE_MSYS -ne $Null) {
# Manually remove conflicting packages to allow the MSYS2 update to
# proceed https://github.com/msys2/MINGW-packages/issues/5434
$ENV:PATH = "C:\msys64\usr\bin;" + $ENV:PATH
bash -l -c "pacman -R --noconfirm mingw-w64-i686-gcc-ada mingw-w64-x86_64-gcc-ada mingw-w64-i686-gcc-objc mingw-w64-x86_64-gcc-objc"
Push-Location "C:\Ruby${ENV:RUBY_VERSION}\bin"
.\ridk.ps1 install 2 3
.\ridk.ps1 enable
Pop-Location
}
ElseIf ($ENV:USE_CYGWIN) {
$ENV:PATH = "C:\Ruby${ENV:RUBY_VERSION}\bin;C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;" + $ENV:PATH
}
- ps: |
$CACertFile = Join-Path -Path $ENV:AppData -ChildPath "RubyCACert.pem"
If (-Not (Test-Path -Path $CACertFile)) {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri "https://curl.haxx.se/ca/cacert.pem" -UseBasicParsing -OutFile $CACertFile | Out-Null
}
$ENV:SSL_CERT_FILE = $CACertFile
- echo %PATH%
- bundle install --retry 2 --without development
build: off
branches:
only:
- master
before_test:
- bundle env
- type Gemfile.lock
test_script:
- bundle exec rake %SUITES%
# Uncomment this block to enable RDP access to the AppVeyor test instance for
# debugging purposes.
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))