forked from Joshua678891011/bcrypt-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
50 lines (43 loc) · 1.41 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
version: "{branch}-{build}"
build: off
clone_depth: 1
init:
# Install Ruby head
- if %RUBY_VERSION%==head (
appveyor DownloadFile https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x86.exe -FileName C:\head_x86.exe &
C:\head_x86.exe /verysilent /dir=C:\Ruby%RUBY_VERSION%
)
- if %RUBY_VERSION%==head-x64 (
appveyor DownloadFile https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x64.exe -FileName C:\head_x64.exe &
C:\head_x64.exe /verysilent /dir=C:\Ruby%RUBY_VERSION%
)
# Add Ruby to the path
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
environment:
matrix:
- RUBY_VERSION: "head"
- RUBY_VERSION: "head-x64"
- RUBY_VERSION: "25"
- RUBY_VERSION: "25-x64"
- RUBY_VERSION: "24"
- RUBY_VERSION: "24-x64"
- RUBY_VERSION: "23"
- RUBY_VERSION: "23-x64"
- RUBY_VERSION: "22"
- RUBY_VERSION: "22-x64"
- RUBY_VERSION: "21"
- RUBY_VERSION: "21-x64"
- RUBY_VERSION: "200"
- RUBY_VERSION: "200-x64"
install:
- ps: "Set-Content -Value 'gem: --no-ri --no-rdoc ' -Path C:\\ProgramData\\gemrc"
- if %RUBY_VERSION%==head ( gem install bundler )
- if %RUBY_VERSION%==head-x64 ( gem install bundler )
- bundle install
before_build:
- ruby -v
- gem -v
build_script:
- bundle exec rake compile -rdevkit
test_script:
- bundle exec rake spec