-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
54 lines (53 loc) · 2 KB
/
appveyor.yml
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
44
45
46
47
48
49
50
51
52
53
54
version: '{build}'
services:
- mssql2014
- iis
configuration:
- Debug
platform: Any CPU
environment:
DatabaseSettings__ConnectionString: Server=(local)\SQL2014;Initial Catalog=TestDatabase;User ID=sa;Password=Password12!;MultipleActiveResultSets=true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
before_build:
- appveyor-retry dotnet restore -v Minimal
build_script:
- dotnet build "src\ContinuousIntegration.Api" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet build "src\ContinuousIntegration" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet build "src\ContinuousIntegration.Web" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
after_build:
- dotnet pack "src\ContinuousIntegration.Api" -c Debug --no-build --version-suffix %LABEL% -o .\artifacts
- dotnet pack "src\ContinuousIntegration" -c Debug --no-build --version-suffix %LABEL% -o .\artifacts
- dotnet publish "src\ContinuousIntegration.Web" -c Debug --no-build --framework netcoreapp1.0 -o %appveyor_build_folder%\publish
- xcopy /s %appveyor_build_folder%\publish c:\inetpub\wwwroot
- PowerShell .\InstallSelfSignedCert.ps1
test_script:
- dotnet test "test\ContinuousIntegrationUnitTests" -c %CONFIGURATION%
- dotnet test "test\ContinuousIntegration.IntegrationTests" -c %CONFIGURATION%
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
nuget:
disable_publish_on_pr: true
artifacts:
- path: .\artifacts\**\*.nupkg
name: NuGet
- path: .\publish
name: ContinuousIntegration.Web
type: WebDeployPackage
deploy:
- provider: WebDeploy
server: https://continuousintegrationsample.scm.azurewebsites.net:443/msdeploy.axd?site=ContinuousIntegrationSample
website: ContinuousIntegrationSample
username:
secure: UtwWSnKfFRQc7x3CjXHrnA==
password:
secure: C6Rs8RqbFe5cl2hYSlC8kQ==
artifact: ContinuousIntegration.Web
aspnet_core: true
aspnet_core_force_restart: false
on:
branch: master