Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] appveyor improvements, test on a wider range of ruby versions #21892

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion Gemfile
Expand Up @@ -19,7 +19,11 @@ gem "fakefs", "1.8"
# for file uploads with Faraday
gem "mime-types", ['>= 1.16', '< 4.0']
# Fast XML parser and object marshaller.
gem "ox", "2.13.2"
if RUBY_VERSION < '2.7.0'
gem "ox", "2.13.2"
else
gem "ox", "2.14.16"
end
# Provides an interactive debugging environment for Ruby.
gem "pry"
# A plugin for pry that adds step-by-step debugging and stack navigation.
Expand Down
16 changes: 13 additions & 3 deletions appveyor.yml
@@ -1,4 +1,5 @@
# https://www.appveyor.com/docs/appveyor-yml/
image: Visual Studio 2019

version: "{build}"

Expand All @@ -20,12 +21,15 @@ skip_branch_with_pr: true
init:
- git config --global core.autocrlf true

cache:
- .vendor/bundle

# cloning the repository happens here

install:
- set PATH=C:\Ruby26-x64\bin;%PATH%
- FOR /F "usebackq delims==" %%A IN (`ruby .ci/compatible_gem_version`) DO gem update --system %%A
- FOR /F "usebackq delims==" %%A IN (`ruby .ci/bundler_version.rb`) DO gem install bundler -v %%A
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
- bundle config --local path .vendor/bundle
- ridk install 3 # for ruby >= 3.1, we need the full compiler toolchain for gems with native extensions
- bundle install
# iconv
- appveyor DownloadFile
Expand All @@ -37,6 +41,12 @@ environment:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
FASTLANE_ITUNES_TRANSPORTER_PATH: C:/tmp
matrix:
- ruby_version: 26-x64
# - ruby_version: 27-x64
# - ruby_version: 30-x64 # disabled for now as we only have 1 concurent job
# - ruby_version: 31-x64
- ruby_version: 32-x64

before_test:
- ruby -v
Expand Down