forked from ged/ruby-pg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
52 lines (51 loc) · 1.85 KB
/
appveyor.yml
File metadata and controls
52 lines (51 loc) · 1.85 KB
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
image: Visual Studio 2019
init:
- set PATH=C:/Ruby%ruby_version%/bin;c:/Program Files/Git/cmd;c:/Windows/system32;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Program Files/Mercurial
- set RUBYOPT=--verbose
install:
- ps: |
if ($env:RUBYDOWNLOAD -ne $null) {
$(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-$env:RUBYDOWNLOAD.exe", "$pwd/ruby-setup.exe")
cmd /c ruby-setup.exe /verysilent /dir=C:/Ruby$env:ruby_version
}
- ruby --version
- gem --version
- gem install bundler --conservative
- bundle install
- ps: |
if ($env:PGVERSION -ne $null)
{
$(new-object net.webclient).DownloadFile('http://get.enterprisedb.com/postgresql/postgresql-' + $env:PGVERSION + '.exe', 'C:/postgresql-setup.exe')
cmd /c "C:/postgresql-setup.exe" --mode unattended --extract-only 1
}
$env:RUBY_DLL_PATH = 'C:/Program Files/PostgreSQL/' + $env:PGVER + '/bin;C:/Program Files (x86)/PostgreSQL/' + $env:PGVER + '/bin'
$env:PATH = 'C:/Program Files/PostgreSQL/' + $env:PGVER + '/bin;' + $env:PATH
$env:PATH = 'C:/Program Files (x86)/PostgreSQL/' + $env:PGVER + '/bin;' + $env:PATH
build_script:
- bundle exec rake -rdevkit compile
test_script:
- bundle exec rake test
environment:
matrix:
- ruby_version: "head"
RUBYDOWNLOAD: x64
PGVERSION: 11.1-1-windows-x64
PGVER: 11
- ruby_version: "head"
RUBYDOWNLOAD: x86
PGVERSION: 10.6-1-windows
PGVER: 10
- ruby_version: "27-x64"
PGVERSION: 11.1-1-windows-x64
PGVER: 11
- ruby_version: "27"
PGVERSION: 10.6-1-windows
PGVER: 10
- ruby_version: "24"
PGVERSION: 9.3.25-1-windows
PGVER: 9.3
- ruby_version: "24-x64"
PGVER: 9.6
matrix:
allow_failures:
- ruby_version: "head"