Skip to content

Commit 26f928b

Browse files
committed
appveyor.yml: test against Ruby 2.4
1 parent 967c311 commit 26f928b

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

appveyor.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
---
22
clone_depth: 10
33
install:
4-
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
5-
- appveyor DownloadFile http://dl.bintray.com/oneclick/OpenKnapsack/x64/openssl-1.0.2j-x64-windows.tar.lzma
6-
- 7z e openssl-1.0.2j-x64-windows.tar.lzma
7-
- 7z x -y -oC:\Ruby%ruby_version% openssl-1.0.2j-x64-windows.tar
8-
- ruby -S rake install_dependencies
4+
- ps: |
5+
$Env:PATH = "C:\Ruby${Env:ruby_version}\bin;${Env:PATH}"
6+
if ($Env:ruby_version -match "^23" ) {
7+
# RubyInstaller; download OpenSSL headers from OpenKnapsack Project
8+
$Env:openssl_dir = "C:\Ruby${Env:ruby_version}"
9+
appveyor DownloadFile http://dl.bintray.com/oneclick/OpenKnapsack/x64/openssl-1.0.2j-x64-windows.tar.lzma
10+
7z e openssl-1.0.2j-x64-windows.tar.lzma
11+
7z x -y -oC:\Ruby${Env:ruby_version} openssl-1.0.2j-x64-windows.tar
12+
} else {
13+
# RubyInstaller2; openssl package seems to be installed already
14+
$Env:openssl_dir = "C:\msys64\mingw64"
15+
}
16+
- ruby -v
17+
- openssl version
18+
- rake install_dependencies
919
build_script:
10-
- rake -rdevkit compile -- --with-openssl-dir=C:\Ruby%ruby_version%
20+
- rake -rdevkit compile -- --with-openssl-dir=%openssl_dir%
1121
test_script:
1222
- rake test
1323
deploy: off
1424
environment:
1525
matrix:
16-
- ruby_version: "23-x64"
26+
- ruby_version: "23-x64" # RI
27+
- ruby_version: "24-x64" # RI2

0 commit comments

Comments
 (0)