37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
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: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 --trace
|
|
test_script:
|
|
- bundle exec rake test PG_DEBUG=0
|
|
environment:
|
|
matrix:
|
|
- ruby_version: "head"
|
|
RUBYDOWNLOAD: x86
|
|
PGVERSION: 10.20-1-windows
|
|
PGVER: 10
|
|
- ruby_version: "25"
|
|
PGVERSION: 9.3.25-1-windows
|
|
PGVER: 9.3
|