File tree Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 1+ image : Visual Studio 2017
2+ skip_tags : true
3+ clone_depth : 5
4+ build : off
5+ matrix :
6+ fast_finish : true
7+
8+ services :
9+ - mssql2014
10+
111init :
212 - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
313 - SET PATH=C:\MinGW\msys\1.0\bin;%PATH%
414 - SET RAKEOPT=-rdevkit
515 - SET TINYTDS_VERSION=2.1.3.pre
6- clone_depth : 5
7- skip_tags : true
8- matrix :
9- fast_finish : true
16+
1017install :
1118 - ps : Update-AppveyorBuild -Version "$(Get-Content $env:appveyor_build_folder\VERSION).$env:appveyor_build_number"
1219 - ruby --version
1320 - gem --version
1421 - bundle install
1522 - gem uninstall bcrypt
1623 - gem install bcrypt --platform=ruby
17- build : off
24+
1825test_script :
1926 - powershell -File "%APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.ps1"
2027 - timeout /t 4 /nobreak > NUL
21- - ps : Start-Service 'MSSQL$SQL2014'
22- - timeout /t 4 /nobreak > NUL
2328 - sqlcmd -S ".\SQL2014" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql
2429 - bundle exec rake test ACTIVERECORD_UNITTEST_DATASERVER="localhost\SQL2014"
25- - ps : Stop-Service 'MSSQL$SQL2014'
26- - ps : Start-Service 'MSSQL$SQL2012SP1'
27- - timeout /t 4 /nobreak > NUL
28- - sqlcmd -S ".\SQL2012SP1" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql
29- - bundle exec rake test ACTIVERECORD_UNITTEST_DATASERVER="localhost\SQL2012SP1"
30+
3031environment :
3132 CI_AZURE_HOST :
3233 secure : VChrioaIWkf9iuuaSs4cryiA4honrADgZqNC0++begg=
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ Write-Output "Setting up..."
55
66Write-Output " Setting variables..."
77$serverName = $env: COMPUTERNAME
8- $instances = @ (' SQL2012SP1 ' , ' SQL2014' )
8+ $instanceNames = @ (' SQL2014' )
99$smo = ' Microsoft.SqlServer.Management.Smo.'
1010$wmi = new-object ($smo + ' Wmi.ManagedComputer' )
1111
1212Write-Output " Configure Instances..."
13- foreach ($instance in $instances ) {
14- Write-Output " Instance $instance ..."
13+ foreach ($instanceName in $instanceNames ) {
14+ Write-Output " Instance $instanceName ..."
1515 Write-Output " Enable TCP/IP and port 1433..."
16- $uri = " ManagedComputer[@Name='$serverName ']/ServerInstance[@Name='$instance ']/ServerProtocol[@Name='Tcp']"
16+ $uri = " ManagedComputer[@Name='$serverName ']/ServerInstance[@Name='$instanceName ']/ServerProtocol[@Name='Tcp']"
1717 $tcp = $wmi.GetSmoObject ($uri )
1818 $tcp.IsEnabled = $true
1919 foreach ($ipAddress in $Tcp.IPAddresses ) {
You can’t perform that action at this time.
0 commit comments