/
appveyor.yml
56 lines (43 loc) · 1.32 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
---
init:
# clean path up to just what we need
- set PATH=C:\ruby%ruby_version%\bin;C:\Program Files\Git\cmd;C:\Program Files\7-Zip;C:\Program Files\AppVeyor\BuildAgent;C:\Windows\system32;C:\Windows
# Loads trunk build, updates MSYS2 / MinGW to most recent gcc compiler, replaces GDBM & OpenSSL packages
- if %ruby_version%==_trunk (
appveyor DownloadFile https://ci.appveyor.com/api/projects/MSP-Greg/ruby-loco/artifacts/ruby_trunk.7z -FileName C:\ruby_trunk.7z &
7z x C:\ruby_trunk.7z -oC:\ruby_trunk & C:\ruby_trunk\trunk_msys2.cmd)
version: "{build}"
install:
- echo %PATH%
- ruby --version
- where ruby
- gem --version
- where gem
- gem install bundler -v 1.16.1 --no-document --force --conservative
- bundle config force_ruby_platform true
- bundle install --jobs 3 --retry 3 --path .bundle/gems
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: _trunk
cache:
- .bundle/gems
matrix:
fast_finish: true
allow_failures:
- ruby_version: _trunk
branches:
only:
- master
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: true