Skip to content

Add trunk to appveyor, change ubygems to rubygems #535

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

Merged
merged 1 commit into from
Oct 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ parsed_files = PARSER_FILES.map do |parser_file|
if parser_file =~ /\.ry\z/ # need racc
racc = Gem.bin_path 'racc', 'racc'
rb_file = parser_file.gsub(/\.ry\z/, ".rb")
ruby "-rubygems #{racc} -l -o #{rb_file} #{parser_file}"
ruby "-rrubygems #{racc} -l -o #{rb_file} #{parser_file}"
elsif parser_file =~ /\.kpeg\z/ # need kpeg
kpeg = Gem.bin_path 'kpeg', 'kpeg'
rb_file = parser_file.gsub(/\.kpeg\z/, ".rb")
ruby "-rubygems #{kpeg} -fsv -o #{rb_file} #{parser_file}"
ruby "-rrubygems #{kpeg} -fsv -o #{rb_file} #{parser_file}"
end
end

Expand Down
30 changes: 22 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
---
init:
# To avoid duplicated executables in PATH, see https://github.com/ruby/spec/pull/468
- set PATH=C:\ruby%RUBY_VERSION%\bin;C:\msys64\usr\bin;C:\Program Files\7-Zip;C:\Program Files\AppVeyor\BuildAgent;C:\Program Files\Git\cmd;C:\Windows\system32;C:\Program Files;C:\Windows
# Loads trunk build and updates MSYS2 / MinGW to most recent gcc compiler
- if %ruby_version%==_trunk (
appveyor DownloadFile %APPVEYOR_URL%/api/projects/MSP-Greg/ruby-loco/artifacts/ruby_trunk.7z -FileName C:\ruby_trunk.7z &
7z x C:\ruby_trunk.7z -oC:\ruby_trunk)

install:
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
- gem install bundler --no-document
- bundle install

build: off

test_script:
- rake

on_finish:
- ruby -v

deploy: off

environment:
NOBENCHMARK: 1
matrix:
- ruby_version: "22"
- ruby_version: "22-x64"
- ruby_version: "23"
- ruby_version: "23-x64"
- ruby_version: "24"
- ruby_version: "24-x64"
- ruby_version: 22
- ruby_version: 22-x64
- ruby_version: 23
- ruby_version: 23-x64
- ruby_version: 24
- ruby_version: 24-x64
- ruby_version: _trunk