-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.ps1
More file actions
43 lines (36 loc) · 1.43 KB
/
test.ps1
File metadata and controls
43 lines (36 loc) · 1.43 KB
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
param(
[Parameter(Mandatory)] [string] $Prefix,
[Parameter(Mandatory)] [string] $SitecoreVersion,
[Parameter(Mandatory)] [string] $DownloadBase,
[Parameter(Mandatory)] [string] $SqlAdminPassword,
[Parameter(Mandatory)] [string] $InstallCommand
)
if ($Env:APPVEYOR_REPO_COMMIT_MESSAGE -like '*[[skip test]]*') {
Write-Host "Skipping tests due to commit message" -ForegroundColor Magenta
return
}
if ($env:APPVEYOR_REPO_BRANCH -eq "master") {
Write-Host "Skipping test as master branch"
return
}
$ErrorActionPreference = "Stop"
.\create-artifact.ps1
Import-Module .\ParTech.SimpleInstallScripts\ParTech.SimpleInstallScripts.psd1
Try {
# Ensure that the scripts can be run from anywhere, not just the checkout directory
Push-Location C:\
& $InstallCommand -Prefix $Prefix `
-SitecoreVersion $SitecoreVersion `
-DownloadBase $DownloadBase `
-SqlServer . `
-SqlAdminUser sa `
-SqlAdminPassword $SqlAdminPassword `
-DoInstallPrerequisites `
-Packages @("Sitecore.PowerShell.Extensions-6.0.zip") `
-DoSitecorePublish
#-DoRebuildLinkDatabases `
#-DoRebuildSearchIndexes `
#-DoDeployMarketingDefinitions
} Finally {
Pop-Location
}