forked from ghostery/user-agent-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
97 lines (82 loc) · 1.93 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
trigger:
- master
- develop
pr:
branches:
include:
- '*'
strategy:
matrix:
Cliqz:
scheme: 'Cliqz'
actions: 'build'
Ghostery:
scheme: 'Ghostery'
actions: 'build'
CliqzTests:
scheme: 'Cliqz'
actions: 'test'
pool:
vmImage: 'macOS 10.14'
steps:
- bash: |
sudo xcode-select --switch /Applications/Xcode_11.1.app
displayName: 'Change XCode to 11.1'
- task: NodeTool@0
displayName: 'Define Node to v10.17.0'
inputs:
versionSpec: '10.17.0'
- bash: |
set -x
npm i -g [email protected]
/usr/local/bin/npm ci
displayName: 'Install Node modules'
- bash: |
set -x
npm run build-user-scripts
displayName: Generate User Scripts
- task: UseRubyVersion@0
inputs:
versionSpec: '2.6'
addToPath: true
- bash: |
set -x
gem install bundler:2.0.2 --force
bundle install --retry=3
bundle exec pod install
displayName: 'Install CocoaPods'
- bash: bundle exec fastlane lint
displayName: 'Lint'
- task: Xcode@5
inputs:
actions: '$(actions)'
sdk: 'iphonesimulator'
xcWorkspacePath: 'UserAgent.xcworkspace'
scheme: '$(scheme)'
packageApp: true
configuration: 'CI'
destinationPlatformOption: 'iOS'
destinationSimulators: 'iPhone 11'
publishJUnitResults: true
args: '-derivedDataPath builds'
- bash: |
brew tap wix/brew
brew install applesimutils
displayName: Install dependencies
- bash: |
npm run test-detox
displayName: e2e test
- task: PublishBuildArtifacts@1
condition: or(succeeded(), failed())
displayName: Publish e2e tests screenshots
inputs:
pathtoPublish: './artifacts'
artifactName: 'Screenshots'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
condition: or(succeeded(), failed())
displayName: Publish e2e tests screenshots
inputs:
pathtoPublish: './builds/Build/Products/CI-iphonesimulator/UserAgent.app'
artifactName: 'App'
publishLocation: 'Container'