-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.appveyor.yml
45 lines (40 loc) · 2.07 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
image: Visual Studio 2019
install:
- set PATH=C:/Ruby%ruby_version%/bin;c:/Program Files/Git/cmd;c:/Windows/system32;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Program Files/Mercurial
- set RAKEOPT=-rdevkit
- set RUBYOPT=--verbose
- ps: |
if ($env:ruby_version -like "*head*") {
$(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-$env:ruby_version.exe", "$pwd/ruby-setup.exe")
cmd /c ruby-setup.exe /verysilent /currentuser /dir=C:/Ruby$env:ruby_version
}
- ridk version
- ridk exec sh -c "pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-gcc ${MINGW_PACKAGE_PREFIX}-libyaml"
- gem --version
- gem inst "bundler:2.4.22"
- bundle _2.4.22_ install
# We need a 32 or 64 bit softokn3.dll to test against.
# However it is not part of any installed software on Appveyor,
# so we download and install a 32 or 64 bit firefox version and use it's softokn3.dll.
- ps: |
if ($env:ruby_version -like "*x64*") {
$(new-object net.webclient).DownloadFile('http://ftp.mozilla.org/pub/firefox/releases/68.3.0esr/win64/en-US/Firefox%20Setup%2068.3.0esr.exe', 'C:/firefox-setup.exe')
$env:SOFTOKN_PATH = 'C:/Program Files/Mozilla Firefox/softokn3.dll'
$env:PATH = 'C:/Program Files/Mozilla Firefox;' + $env:PATH
} else {
$(new-object net.webclient).DownloadFile('http://ftp.mozilla.org/pub/firefox/releases/68.3.0esr/win32/en-US/Firefox%20Setup%2068.3.0esr.exe', 'C:/firefox-setup.exe')
$env:SOFTOKN_PATH = 'C:/Program Files (x86)/Mozilla Firefox/softokn3.dll'
$env:PATH = 'C:/Program Files (x86)/Mozilla Firefox;' + $env:PATH
}
cmd /c "C:/firefox-setup.exe" -ms
build: off
test_script:
- bundle _2.4.22_ exec rake compile test gem
environment:
matrix:
- ruby_version: head-x64
RUBY_DLL_PATH: "C:/Program Files/Mozilla Firefox"
- ruby_version: "26"
RUBY_DLL_PATH: "C:/Program Files (x86)/Mozilla Firefox"
- ruby_version: "31-x64"
RUBY_DLL_PATH: "C:/Program Files/Mozilla Firefox"