forked from twzhangyang/RestAirline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
61 lines (44 loc) · 1.99 KB
/
azure-pipelines.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
55
56
57
58
59
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
# ========================================================================
# Mandatory variables
# ========================================================================
# Update Azure.ResourceGroupName value with Azure resource group name.
Azure.ResourceGroupName: 'restairline-group'
# Update Azure.ServiceConnectionId value with AzureRm service endpoint.
Azure.ServiceConnectionId: 'Visual Studio Enterprise(8e5414cf-26ac-43c3-bac4-3e9235fbcbda)'
# Update Azure.Location value with Azure Location.
Azure.Location: 'eastasia'
# Update ACR.Name value with ACR name. Please note ACR names should be all lower-case and alphanumeric only.
ACR.Name: 'restairline'
# Update Web.Name value with a name that identifies your new Web app. Valid characters are a-z, 0-9, and -.
WebApp.Name: 'restairline-test'
# Update ServicePlan.Name value with a name of the app service plan.
ServicePlan.Name: '{{#toAlphaNumericString repositoryName 45}}{{/toAlphaNumericString}}-plan'
# ========================================================================
# Optional variables
# ========================================================================
ACR.ImageName: '$(ACR.Name):$(Build.BuildId)'
ACR.FullName: '$(ACR.Name).azurecr.io'
System.Debug: 'false'
steps:
- bash: printenv | sort
- task: Bash@3
displayName: Build booking
inputs:
filePath: './buildscript/build-booking.bash'
- task: Bash@3
displayName: Build flight availability
inputs:
filePath: './buildscript/build-flight-availability.bash'
- task: Bash@3
displayName: Booking unit tests
inputs:
filePath: './buildscript/unitTest-booking.sh'