forked from rails-sqlserver/tiny_tds
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
72 lines (72 loc) · 3.66 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
63
64
65
66
67
68
69
70
71
72
init:
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
- SET RAKEOPT=-rdevkit
- SET TESTOPTS='-v'
- SET MAKE=make V=1 -j2
clone_depth: 5
skip_tags: true
skip_branch_with_pr: true
matrix:
fast_finish: false
install:
# Output debugging info
- ps: Update-AppveyorBuild -Version "$(Get-Content $env:appveyor_build_folder\VERSION).$env:appveyor_build_number"
- 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
}
- perl --version
- ruby --version
- gem --version
# Update keyring according to https://www.msys2.org/news/#2020-06-29-new-packagers
- C:\msys64\usr\bin\curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
- C:\msys64\usr\bin\curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
- ridk exec bash -c "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
- ridk exec bash -c "pacman -U --noconfirm --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
# Update zstd and pacman first https://github.com/msys2/MSYS2-packages/issues/2300
- C:\msys64\usr\bin\pacman --noconfirm --upgrade https://repo.msys2.org/msys/x86_64/zstd-1.4.7-1-x86_64.pkg.tar.xz # Must come First, or else pacman will install 1.4.8
- C:\msys64\usr\bin\pacman --noconfirm --upgrade https://repo.msys2.org/msys/x86_64/pacman-5.2.2-5-x86_64.pkg.tar.xz
# update packages
- C:\msys64\usr\bin\pacman --noconfirm --ask 20 --sync --refresh --refresh --sysupgrade --sysupgrade
# Kill all running msys2 binaries to avoid error "size of shared memory region changed".
# See https://github.com/msys2/MSYS2-packages/issues/258
- powershell -Command "Get-Process | Where-Object {$_.path -like 'C:\msys64*'} | Stop-Process"
# refresh the package list to avoid "error: failed to prepare transaction (could not find database)"
- ridk exec bash -c "pacman --noconfirm -Sy"
# prevent freetds to link to wrong ws2_32 lib on i686-w64-mingw32
- c:/msys64/usr/bin/rm /usr/lib/w32api/libws2_32.a
# Set up project prerequisits
- bundle install
- bundle exec rake ports
build: off
branches:
except:
- /dev.*/
test_script:
- timeout /t 4 /nobreak > NUL
- powershell -File "%APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.ps1"
- timeout /t 4 /nobreak > NUL
- ps: Start-Service 'MSSQL$SQL2014'
- timeout /t 4 /nobreak > NUL
- sqlcmd -S ".\SQL2014" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql
- bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2014" TINYTDS_SCHEMA=sqlserver_2014 TDSVER=7.1
- bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2014" TINYTDS_SCHEMA=sqlserver_2014
- ps: Stop-Service 'MSSQL$SQL2014'
- ps: Start-Service 'MSSQL$SQL2012SP1'
- timeout /t 4 /nobreak > NUL
- sqlcmd -S ".\SQL2012SP1" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql
- bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2012SP1" TINYTDS_SCHEMA=sqlserver_2014
environment:
CI_AZURE_HOST:
secure: 8ydpYysZYKEBKvp6plKlYfepH98/zAuT27FFCaJ9Sss=
TINYTDS_UNIT_AZURE_PASS:
secure: fYKSKV4v+36OFQp2nZdX4DfUpgmy5cm0wuR73cgdmEk=
matrix:
- ruby_version: "24"
- ruby_version: "25-x64"
- ruby_version: "26"
- ruby_version: "head-x64"
on_failure:
- find -name config.log | xargs cat
- find -name compile.log | xargs cat