Skip to content

Commit 958b862

Browse files
committed
chore(Appveyor): More ssl attempts
1 parent ea9c566 commit 958b862

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

appveyor.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,12 @@ init:
1616
install:
1717
- ps: |
1818
if ($Env:RUBY_VERSION -match "^23" ) {
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"
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
2721
}
2822
- bundle install
2923
- gem uninstall -a -x --force eventmachine
30-
- gem install eventmachine --platform ruby --no-rdoc --no-ri -- --with-ssl-dir=%openssl_dir%
24+
- gem install eventmachine --platform ruby --no-rdoc --no-ri
3125

3226
build: off
3327

0 commit comments

Comments
 (0)