62 lines
2.0 KiB
YAML
62 lines
2.0 KiB
YAML
version: '{build}'
|
|
shallow_clone: true
|
|
|
|
init:
|
|
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|
|
build_script:
|
|
- cmd: >-
|
|
SET SLN=%CD%
|
|
|
|
SET SRC=%SLN%\src
|
|
|
|
SET PACKAGES=%SRC%\packages
|
|
|
|
CD build
|
|
|
|
SET "release="
|
|
|
|
FOR /F "skip=1 delims=" %%i IN (UmbracoVersion.txt) DO IF NOT DEFINED release SET "release=%%i"
|
|
|
|
ECHO "Restoring NuGet into %PACKAGES%"
|
|
|
|
%SRC%\.nuget\NuGet.exe sources Add -Name MyGetUmbracoCore -Source https://www.myget.org/F/umbracocore/api/v2/ >NUL
|
|
|
|
%SRC%\.nuget\NuGet.exe restore %SRC%\umbraco.sln -Verbosity Quiet -NonInteractive -PackagesDirectory %PACKAGES%
|
|
|
|
ECHO Building Release %release% build%APPVEYOR_BUILD_NUMBER%
|
|
|
|
SET PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
|
|
|
|
SET MSBUILD="C:\Program Files (x86)\MSBuild\14.0\Bin\MsBuild.exe"
|
|
|
|
XCOPY "%SRC%\Umbraco.Tests\unit-test-log4net.CI.config" "%SRC%\Umbraco.Tests\unit-test-log4net.config" /Y
|
|
|
|
%MSBUILD% "%SLN%/src/Umbraco.Tests/Umbraco.Tests.csproj" /consoleloggerparameters:Summary;ErrorsOnly;WarningsOnly /p:NugetPackagesDirectory=%PACKAGES%
|
|
|
|
build.bat -integration -release:%release% -comment:build%APPVEYOR_BUILD_NUMBER% -nugetfolder:%PACKAGES%
|
|
|
|
test:
|
|
assemblies: src\Umbraco.Tests\bin\Debug\Umbraco.Tests.dll
|
|
artifacts:
|
|
- path: build\UmbracoCms.*
|
|
name: UmbracoFiles
|
|
- path: build\msbuild.log
|
|
name: BuildLog
|
|
deploy:
|
|
- provider: AzureBlob
|
|
storage_account_name: umbraconightlies
|
|
storage_access_key:
|
|
secure: bmEMml2SF7QLHULiePa/a01XOeIa2SxJeXuaZ+1R27b+Vb2nNUQVYiPlUyF2cZAFSHI/zO/LekRsVU1rTescGhJjF7SSjKybymI3p+F/OWpwqiu2WfFee1ofXBFx8QHw
|
|
container: umbraco-750
|
|
artifact: UmbracoFiles
|
|
on:
|
|
branch: dev-v7
|
|
notifications:
|
|
- provider: Slack
|
|
auth_token:
|
|
secure: v2csJi2V5ghR0rPdODK8GJdOGNCA+XaK84iQ9MdPOClqB+VU+40ybdKp6gPirGSH
|
|
channel: '#build-umbraco-core'
|
|
on_build_success: false
|
|
on_build_failure: true
|
|
on_build_status_changed: false |