View gist:5361702
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
$checkoutFolder = "%teamcity.build.workingDir%" | |
$targetDll = "$checkoutFolder\bin\Debug\%DLL containing tests here%" | |
$fixture = "%your namespace here%" | |
$resultXml = "$checkoutFolder\TestResult.xml" | |
$resultHtml = "$checkoutFolder\TestResults" | |
rm $resultXml -Force -Verbose | |
rm $resultHtml -Force -Verbose -Recurse | |
$buildOptions = "/xml:$resultXml /fixture:$fixture" |
View gist:5362867
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
properties { | |
$buildFolder = Resolve-Path .. | |
$revision = "100500" | |
$buildNumber = "15" | |
} | |
task Package -depends Init, Upt, Zip | |
task Init { | |
# Copy Sitecore DLL's, etc. |
View gist:5363165
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
Remove-Module [p]sake | |
Import-Module .\Tools\psake\psake.psm1 | |
$psake.use_exit_on_error = $true | |
Invoke-psake .\package.ps1 Package -properties @{ revision = '%env.BUILD_VCS_NUMBER%'; } |
View gist:5418727
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
properties { | |
$distributivePath = "%path to storage%\Sitecore 6.6.0 rev. 130111.zip" | |
$localStorage = "C:\LocalStorage" | |
$distributiveName = [System.IO.Path]::GetFileNameWithoutExtension($distributivePath) | |
$zipFile = "$localStorage\$distributiveName.zip" | |
$buildFolder = Resolve-Path .. | |
$revision = "12345" | |
$buildNumber = "1" | |
} |
View gist:5442033
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
Clear-Host | |
# Framework initialization | |
$scriptRoot = Split-Path (Resolve-Path $myInvocation.MyCommand.Path) | |
$env:PSModulePath = $env:PSModulePath + ";$scriptRoot\Framework" | |
Import-Module WebUtils | |
Import-Module ConfigUtils | |
Import-Module DBUtils | |
Import-Module IISUtils |
View gist:5442120
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
var files = Directory.GetFiles(Server.MapPath("/sitecore/admin/Packages"), "*.update", SearchOption.AllDirectories); | |
Sitecore.Context.SetActiveSite("shell"); | |
using (new SecurityDisabler()) | |
{ | |
using (new ProxyDisabler()) | |
{ | |
using (new SyncOperationContext()) | |
{ | |
foreach (var file in files) | |
{ |
View gist:5480127
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
$checkoutFolder = "%teamcity.build.workingDir%" | |
$targetDll = "$checkoutFolder\Website\TestProject\bin\Release\TestProject.dll" | |
$fixture = "TestProject.MediaPlayerEditorTest" | |
$resultXml = "$checkoutFolder\TestResult.xml" | |
rm $resultXml -Force -Verbose -ErrorAction SilentlyContinue | |
$buildOptions = "/xml:$resultXml /fixture:$fixture" | |
$command = 'C:\Chocolatey\bin\nunit-console.bat "$targetDll" ' + $buildOptions |
View gist:5605369
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
task Init { | |
if (-not (Test-Path $localStorage)) { | |
New-Item $localStorage -type directory -Verbose | |
} | |
if (-not (Test-Path $zipFile)) { | |
Copy-Item $distributivePath $zipFile -Verbose | |
} | |
if (-not (Test-Path $localStorage\$distributiveName)) { |
View gist:5605371
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
task Compile { | |
exec { msbuild $buildFolder\Website\LaunchSitecore.sln /p:Configuration=Release /t:Clean } | |
exec { msbuild $buildFolder\Website\LaunchSitecore.sln /p:Configuration=Release /t:Build } | |
} |
View gist:5605373
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
task Courier { | |
New-Item $buildFolder\Data\serialization_empty -type directory -force | |
& "$buildFolder\Buildscript\Tools\Courier\Sitecore.Courier.Runner.exe" /source:$buildFolder\Data\serialization_empty /target:$buildFolder\Data\serialization /output:$buildFolder\Website\sitecore\admin\Packages\LaunchSitecoreItems.update | |
} |
OlderNewer