-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
59 lines (52 loc) · 1.43 KB
/
azure-pipelines.yml
File metadata and controls
59 lines (52 loc) · 1.43 KB
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
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- task: BrowserStackConfig@0
name: 'BrowserStackConfiguration'
displayName: 'BrowserStack Configuration'
inputs:
BrowserStackServiceEndPoint: 'BStack Demo Account'
- task: DotNetCoreCLI@2
name: 'RestoreProject'
displayName: 'Restore Project'
inputs:
command: 'restore'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
name: 'BuildProject'
displayName: 'Build Project'
inputs:
command: 'build'
- task: DotNetCoreCLI@2
name: 'TestProjectBuild'
displayName: 'Run Tests'
inputs:
command: 'test'
arguments: '--filter FullyQualifiedName\!~ReportGeneration'
continueOnError: true
env:
CAPABILITIES_FILENAME: capabilities.yml
BROWSERSTACK_ANDROID_APP_ID: SimpleApp_Android
BROWSERSTACK_IOS_APP_ID: SimpleApp_iOS
BROWSERSTACK_APP_ID: <Test_App>
BROWSERSTACK_BUILD_NAME: browserstack-examples-appium-nunit-$(Build.BuildId)
- task: DotNetCoreCLI@2
name: 'TestProjectReport'
displayName: 'Run Report'
inputs:
command: 'test'
arguments: '--filter ReportGeneration'
continueOnError: true
env:
BROWSERSTACK_BUILD_NAME: browserstack-examples-appium-nunit-$(Build.BuildId)
- task: BrowserStackResults@1
inputs:
browserstackProduct: 'app-automate'
continueOnError: true
- task: PublishPipelineArtifact@1
displayName: 'Publish Pipeline Artifact'
inputs:
targetPath: ./Reports/output.html
artifact: 'Build Report'