-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
7 changed files
with
28 additions
and
16 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
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 |
---|---|---|
|
@@ -16,15 +16,15 @@ | |
Write-Host $CurrentDir | ||
|
||
Write-Host "Installing Umbraco templates" | ||
dotnet new install Umbraco.Templates | ||
dotnet new --install Umbraco.Templates | ||
|
||
Write-Host "Creating Umbraco site" | ||
cd $Destination | ||
dotnet new umbraco -n $ProjectName --development-database-type SQLite --version $CmsVersion --friendly-name "Test admin" --email "[email protected]" --password "1234567890" | ||
|
||
cd "$Destination\$ProjectName" | ||
|
||
dotnet add package Umbraco.TheStarterKit --version $CmsVersion --source https://api.nuget.org/v3/index.json | ||
dotnet add package Umbraco.TheStarterKit --version $StarterKitVersion --source https://api.nuget.org/v3/index.json | ||
|
||
dotnet build | ||
|
||
|
@@ -37,7 +37,7 @@ | |
$newNode.InnerText = '../Nuget' | ||
$propertyGroup.Node.AppendChild($newNode) | ||
$xml.Save("$Destination\$ProjectName\$ProjectName.csproj") | ||
|
||
cd $CurrentDir | ||
} | ||
|
||
|
@@ -47,8 +47,10 @@ $CurrentDir = Split-Path $MyInvocation.MyCommand.Path | |
|
||
Write-Host "Cleaning up existing test site" | ||
|
||
if (Test-Path -Path $TestSitesFolder) { | ||
Remove-Item -LiteralPath $TestSitesFolder -Force -Recurse | ||
$TestSitePath = "$TestSitesFolder\$TestProjectName" | ||
|
||
if (Test-Path -Path $TestSitePath) { | ||
Remove-Item -LiteralPath $TestSitePath -Force -Recurse | ||
} | ||
|
||
New-Item -Path $RootDir -Name $TestSitesFolderName -ItemType "directory" | ||
|
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,7 +1,9 @@ | ||
$RootDir = Split-Path -Path $CurrentDir -Parent | ||
$TestSitesFolderName = "testsites" | ||
$TestSitesFolder = "$RootDir\$TestSitesFolderName" | ||
$TestProjectName = "OEmbedPickerSite" | ||
$TestProjectName = "V12" | ||
$PackageName = "Dawoe.OEmbedPickerPropertyEditor" | ||
$SolutionName = "Dawoe.OEmbedPickerPropertyEditor" | ||
$SourceDir = "$RootDir\src" | ||
$UmbracoVersion = "11.0.0" | ||
$UmbracoVersion = "12.0.0" | ||
$StarterKitVersion = "11.0.0" |
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,7 +1,7 @@ | ||
image: Visual Studio 2022 | ||
|
||
# Version format | ||
version: 11.0.0.{build} | ||
version: 12.0.0.{build} | ||
|
||
branches: | ||
only: | ||
|
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