Skip to content

Commit 2a20c9f

Browse files
authored
Merge pull request #535 from MSP-Greg/av_trunk
Add trunk to appveyor, change ubygems to rubygems
2 parents d24e4f7 + 519ae4d commit 2a20c9f

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ parsed_files = PARSER_FILES.map do |parser_file|
6262
if parser_file =~ /\.ry\z/ # need racc
6363
racc = Gem.bin_path 'racc', 'racc'
6464
rb_file = parser_file.gsub(/\.ry\z/, ".rb")
65-
ruby "-rubygems #{racc} -l -o #{rb_file} #{parser_file}"
65+
ruby "-rrubygems #{racc} -l -o #{rb_file} #{parser_file}"
6666
elsif parser_file =~ /\.kpeg\z/ # need kpeg
6767
kpeg = Gem.bin_path 'kpeg', 'kpeg'
6868
rb_file = parser_file.gsub(/\.kpeg\z/, ".rb")
69-
ruby "-rubygems #{kpeg} -fsv -o #{rb_file} #{parser_file}"
69+
ruby "-rrubygems #{kpeg} -fsv -o #{rb_file} #{parser_file}"
7070
end
7171
end
7272

appveyor.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
11
---
2+
init:
3+
# To avoid duplicated executables in PATH, see https://github.com/ruby/spec/pull/468
4+
- 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
5+
# Loads trunk build and updates MSYS2 / MinGW to most recent gcc compiler
6+
- if %ruby_version%==_trunk (
7+
appveyor DownloadFile %APPVEYOR_URL%/api/projects/MSP-Greg/ruby-loco/artifacts/ruby_trunk.7z -FileName C:\ruby_trunk.7z &
8+
7z x C:\ruby_trunk.7z -oC:\ruby_trunk)
9+
210
install:
3-
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
4-
- gem install bundler --no-document
511
- bundle install
12+
613
build: off
14+
715
test_script:
816
- rake
17+
18+
on_finish:
19+
- ruby -v
20+
921
deploy: off
22+
1023
environment:
1124
NOBENCHMARK: 1
1225
matrix:
13-
- ruby_version: "22"
14-
- ruby_version: "22-x64"
15-
- ruby_version: "23"
16-
- ruby_version: "23-x64"
17-
- ruby_version: "24"
18-
- ruby_version: "24-x64"
26+
- ruby_version: 22
27+
- ruby_version: 22-x64
28+
- ruby_version: 23
29+
- ruby_version: 23-x64
30+
- ruby_version: 24
31+
- ruby_version: 24-x64
32+
- ruby_version: _trunk

0 commit comments

Comments
 (0)