Skip to content

Commit 1bd8eb1

Browse files
committed
chore(Appveyor): Another ssl appveyor attempt
1 parent 958b862 commit 1bd8eb1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

appveyor.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@ init:
1616
install:
1717
- ps: |
1818
if ($Env:RUBY_VERSION -match "^23" ) {
19-
((New-Object Net.WebClient).DownloadFile('https://curl.haxx.se/ca/cacert.pem', "$env:TMP\ca-cert.pem"))
20-
set SSL_CERT_FILE=%TMP%\ca-cert.pem
19+
# RubyInstaller; download OpenSSL headers from OpenKnapsack Project
20+
$Env:openssl_dir = "C:\Ruby${Env:RUBY_VERSION}"
21+
appveyor DownloadFile http://dl.bintray.com/oneclick/OpenKnapsack/x64/openssl-1.0.2j-x64-windows.tar.lzma
22+
7z e openssl-1.0.2j-x64-windows.tar.lzma
23+
7z x -y -oC:\Ruby${Env:RUBY_VERSION} openssl-1.0.2j-x64-windows.tar
24+
} else {
25+
# RubyInstaller2; openssl package seems to be installed already
26+
$Env:openssl_dir = "C:\msys64\mingw64"
2127
}
28+
- set SSL_CERT_FILE=C:/ruby24-x64/ssl/cert.pem
2229
- bundle install
2330
- gem uninstall -a -x --force eventmachine
24-
- gem install eventmachine --platform ruby --no-rdoc --no-ri
31+
- gem install eventmachine --platform ruby --no-rdoc --no-ri -- --with-ssl-dir=%openssl_dir%
2532

2633
build: off
2734

0 commit comments

Comments
 (0)