forked from deivid-rodriguez/byebug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (46 loc) · 1.5 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
---
install:
- set PATH=C:\Ruby%ruby_version%\bin;C:\Program Files\Git\cmd;C:/Windows/system32;C:\Program Files\Git\usr\bin
- 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
- bash --version
- where bash
build_script:
- bash -lc bin/setup.sh
test_script:
- ruby bin/rake compile test
environment:
matrix:
- ruby_version: 24-x64
- ruby_version: 25-x64
- ruby_version: 26-x64
- ruby_version: head-x64
cache:
- .bundle
matrix:
allow_failures:
- ruby_version: head-x64
branches:
only:
- master
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: true