-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
67 lines (66 loc) · 2.11 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
60
61
62
63
64
65
66
67
# Xcode
# Build, test, and archive an Xcode workspace on macOS.
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
jobs:
- job: Cliqz_Mobile_Tests_CI
timeoutInMinutes: 60
strategy:
matrix:
GhosteryAndroid:
platform: 'android'
brand: 'ghostery'
GhosteryIOS:
platform: 'ios'
brand: 'ghostery'
pool:
vmImage: 'macOS 10.13'
steps:
- bash: |
source scripts/azure-scripts/setup.sh $(platform)
source scripts/azure-scripts/launchEmu.sh $(platform)
source scripts/azure-scripts/envs.sh $(platform) $(brand)
source scripts/azure-scripts/appium.sh
python testRunner.py || true
source scripts/azure-scripts/cleanup.sh $(platform)
displayName: 'Setup and Run Tests'
- task: PublishTestResults@2
condition: always()
displayName: 'Publish JUnit Test'
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'test-reports/*.xml'
- task: ArchiveFiles@2
condition: always()
displayName: 'Archive Screenshots'
inputs:
rootFolderOrFile: 'screenshots'
archiveType: 'zip'
tarCompression: 'none'
archiveFile: '$(Build.ArtifactStagingDirectory)/screenshots.zip'
- task: ArchiveFiles@2
condition: always()
displayName: 'Archive Logs'
inputs:
rootFolderOrFile: 'logs'
archiveType: 'zip'
tarCompression: 'none'
archiveFile: '$(Build.ArtifactStagingDirectory)/logs.zip'
- task: ArchiveFiles@2
condition: always()
displayName: 'Archive Reports Folder'
inputs:
rootFolderOrFile: 'test-reports'
archiveType: 'zip'
tarCompression: 'none'
archiveFile: '$(Build.ArtifactStagingDirectory)/reports.zip'
- task: PublishBuildArtifacts@1
condition: always()
displayName: 'Publish Artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: '$(Build.BuildId)'
publishLocation: 'Container'
- bash: |
source scripts/azure-scripts/parseReports.sh
displayName: 'Parse Reports'