Skip to content

Commit

Permalink
appveyor update
Browse files Browse the repository at this point in the history
  • Loading branch information
qusma committed Feb 10, 2021
1 parent bc1dac5 commit 0048cd3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion QDMSTest/QDMS/DbCreationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class DbCreationTest
private readonly string _mySqlHost = "127.0.0.1";

private readonly string _sqlServerPassword = "Password12!";
private readonly string _sqlServerHost = "(local)\\SQL2016";
private readonly string _sqlServerHost = "(local)\\SQL2017";
private readonly string _sqlServerUsername = "sa";
private readonly bool _useWindowsAuthentication = false;

Expand Down
23 changes: 12 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cache:
# enable service required for build/tests
services:
- mysql # start MySQL 5.6 service
- mssql2016
- mssql2017

# enable patching of AssemblyInfo.* files
#assembly_info:
Expand All @@ -47,6 +47,15 @@ services:
# assembly_informational_version: "{version}"


install:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe


# scripts to run before build
before_build:
- nuget restore -DisableParallelProcessing


#---------------------------------#
# build configuration #
#---------------------------------#
Expand All @@ -57,25 +66,17 @@ platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release

install:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe


build:
parallel: true # enable MSBuild parallel builds
project: QDMS.sln # path to Visual Studio solution or project
verbosity: detailed

# scripts to run before build
before_build:
- nuget restore -DisableParallelProcessing
verbosity: minimal

# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
before_package:

# scripts to run after build
after_build:
- ps: "[reflection.assembly]::LoadWithPartialName(\"Microsoft.SqlServer.Smo\") | Out-Null\n[reflection.assembly]::LoadWithPartialName(\"Microsoft.SqlServer.SqlWmiManagement\") | Out-Null\n \n$instanceName = 'SQL2016'\n$computerName = $env:COMPUTERNAME\n$smo = 'Microsoft.SqlServer.Management.Smo.'\n$wmi = New-Object ($smo + 'Wmi.ManagedComputer')\n\n# Enable named pipes\n$uri = \"ManagedComputer[@Name='$computerName']/ ServerInstance[@Name='$instanceName']/ServerProtocol[@Name='Np']\"\n$Np = $wmi.GetSmoObject($uri)\n$Np.IsEnabled = $true\n$Np.Alter()\n\n# Start services\nSet-Service SQLBrowser -StartupType Manual\nStart-Service SQLBrowser\nRestart-Service \"MSSQL`$$instanceName\""
- ps: "[reflection.assembly]::LoadWithPartialName(\"Microsoft.SqlServer.Smo\") | Out-Null\n[reflection.assembly]::LoadWithPartialName(\"Microsoft.SqlServer.SqlWmiManagement\") | Out-Null\n \n$instanceName = 'SQL2017'\n$computerName = $env:COMPUTERNAME\n$smo = 'Microsoft.SqlServer.Management.Smo.'\n$wmi = New-Object ($smo + 'Wmi.ManagedComputer')\n\n# Enable named pipes\n$uri = \"ManagedComputer[@Name='$computerName']/ ServerInstance[@Name='$instanceName']/ServerProtocol[@Name='Np']\"\n$Np = $wmi.GetSmoObject($uri)\n$Np.IsEnabled = $true\n$Np.Alter()\n\n# Start services\nSet-Service SQLBrowser -StartupType Manual\nStart-Service SQLBrowser\nRestart-Service \"MSSQL`$$instanceName\""

# to run your custom scripts instead of automatic MSBuild
build_script:
Expand Down

0 comments on commit 0048cd3

Please sign in to comment.