forked from deivid-rodriguez/byebug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (52 loc) · 1.69 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
install:
- SET PATH=C:\Ruby%ruby_version%\bin;C:\Program Files\Git\cmd;C:/Windows/system32
- 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 /verysilent /dir=C:/Ruby$env:ruby_version
}
- git clone -q --depth=5 --no-tags --branch=byebug https://github.com/MSP-greg/rb-readline.git C:\rb-readline
- ps: $env:ruby_abi_vers = (&ruby.exe -e "puts RbConfig::CONFIG['ruby_version']" | Out-String).Trim()
- set n_dir=C:\Ruby%ruby_version%\lib\ruby\site_ruby\%ruby_abi_vers%
- attrib.exe -r %n_dir%\*.rb
- del /q %n_dir%\readline.rb
- del /q %n_dir%\rbreadline.rb
- copy C:\rb-readline\lib\readline.rb %n_dir%\readline.rb
- copy C:\rb-readline\lib\rbreadline.rb %n_dir%\rbreadline.rb
- echo %PATH%
- ruby --version
- where ruby
- gem --version
- where gem
- gem update --system 2.7.7
- bundle config force_ruby_platform true
- bundle install --jobs 3 --retry 3 --path .bundle
build_script:
- bundle exec rake clobber compile
test_script:
- bundle exec rake test
environment:
matrix:
- ruby_version: 23
- ruby_version: 23-x64
- ruby_version: 24
- ruby_version: 24-x64
- ruby_version: 25
- ruby_version: 25-x64
- ruby_version: head-x86
- ruby_version: head-x64
cache:
- .bundle
matrix:
allow_failures:
- ruby_version: head-x86
- ruby_version: head-x64
branches:
only:
- master
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: true