image: Visual Studio 2022
clone_depth: 1
init:
- SET PATH=c:/Ruby%ruby_version%/bin;%PATH%
install:
- 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 /currentuser /verysilent /dir=C:/Ruby$env:ruby_version
}
- ruby --version
- gem --version
- ridk version
- ridk enable
# Install required packages
- c:/msys64/usr/bin/bash -lc "pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-pkgconf ${MINGW_PACKAGE_PREFIX}-fox ${MINGW_PACKAGE_PREFIX}-swig ${MINGW_PACKAGE_PREFIX}-gcc"
- gcc -v
- swig -version
- gem install bundler --conservative
- bundle config set force_ruby_platform true
- bundle install
build_script:
- bundle exec rake compile
test_script:
- bundle exec rake test
environment:
matrix:
- ruby_version: "head-x64"
- ruby_version: "24"