Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cd0509
commit 12602d6
Showing
6 changed files
with
83 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,37 @@ | ||
version: 0.6.3.rc2.{build} | ||
shallow_clone: true | ||
init: | ||
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH% | ||
- SET PATH=C:\MinGW\msys\1.0\bin;%PATH% | ||
- SET RAKEOPT=-rdevkit | ||
clone_depth: 5 | ||
skip_tags: true | ||
matrix: | ||
fast_finish: true | ||
services: | ||
- mssql2014 | ||
install: | ||
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH% | ||
- SET PATH=C:\MinGW\msys\1.0\bin;%PATH% | ||
- SET RAKEOPT=-rdevkit | ||
- echo %APPVEYOR_BUILD_FOLDER% | ||
- ruby --version | ||
- gem --version | ||
- bundle install | ||
- bundle exec rake build | ||
build: off | ||
test_script: | ||
- powershell -NoExit "& ""C:\projects\tiny-tds\test\appveyor\sqlserver_2014.ps1""" | ||
- bundle exec rake TINYTDS_UNIT_DATASERVER="localhost\SQL2014" TINYTDS_UNIT_DATABASE=master TINYTDS_UNIT_USER=sa TINYTDS_UNIT_PASS=Password12! | ||
- 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 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 TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2012SP1" TINYTDS_SCHEMA=sqlserver_2014 | ||
- ps: Stop-Service 'MSSQL$SQL2012SP1' | ||
- ps: Start-Service 'MSSQL$SQL2008R2SP2' | ||
- timeout /t 4 /nobreak > NUL | ||
- sqlcmd -S ".\SQL2008R2SP2" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql | ||
- bundle exec rake TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2008R2SP2" TINYTDS_SCHEMA=sqlserver_2014 | ||
environment: | ||
matrix: | ||
# - ruby_version: "193" | ||
#- ruby_version: "200" | ||
#- ruby_version: "200-x64" | ||
#- ruby_version: "21" | ||
#- ruby_version: "21-x64" | ||
#- ruby_version: "22" | ||
- ruby_version: "193" | ||
- ruby_version: "22-x64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
Write-Output "Setting up..." | ||
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null | ||
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | Out-Null | ||
|
||
Write-Output "Setting variables..." | ||
$serverName = $env:COMPUTERNAME | ||
$instances = @('SQL2008R2SP2', 'SQL2012SP1', 'SQL2014') | ||
$smo = 'Microsoft.SqlServer.Management.Smo.' | ||
$wmi = new-object ($smo + 'Wmi.ManagedComputer') | ||
|
||
Write-Output "Configure Instances..." | ||
foreach ($instance in $instances) { | ||
Write-Output "Instance $instance ..." | ||
Write-Output "Enable TCP/IP and port 1433..." | ||
$uri = "ManagedComputer[@Name='$serverName']/ServerInstance[@Name='$instance']/ServerProtocol[@Name='Tcp']" | ||
$tcp = $wmi.GetSmoObject($uri) | ||
$tcp.IsEnabled = $true | ||
foreach ($ipAddress in $Tcp.IPAddresses) { | ||
$ipAddress.IPAddressProperties["TcpDynamicPorts"].Value = "" | ||
$ipAddress.IPAddressProperties["TcpPort"].Value = "1433" | ||
} | ||
$tcp.Alter() | ||
} | ||
|
||
Set-Service SQLBrowser -StartupType Manual | ||
Start-Service SQLBrowser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE DATABASE [tinytdstest]; | ||
GO | ||
CREATE LOGIN [tinytds] WITH PASSWORD = '', CHECK_POLICY = OFF, DEFAULT_DATABASE = [tinytdstest]; | ||
GO | ||
USE [tinytdstest]; | ||
CREATE USER [tinytds] FOR LOGIN [tinytds]; | ||
GO | ||
EXEC sp_addrolemember N'db_owner', N'tinytds'; | ||
GO |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters