-
Notifications
You must be signed in to change notification settings - Fork 41
/
azure-pipelines.yml
90 lines (69 loc) · 2.06 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
# https://msmobilecenter.visualstudio.com/Mobile-Center/_build/results?buildId=662289
trigger:
tags:
include:
- '*'
branches:
include:
- master
- develop
pr:
branches:
include:
- master
- develop
variables:
- name: EOCompliance-Mac
value: true
jobs:
- job:
strategy:
matrix:
BigSur-Xcode-12.5:
IMAGE_POOL: 'macOS-11'
XCODE_VERSION: '11.7'
BigSur-Xcode-13.0:
IMAGE_POOL: 'macOS-11'
XCODE_VERSION: '13.0'
BigSur-Xcode-13.1:
IMAGE_POOL: 'macOS-11'
XCODE_VERSION: '13.1'
timeoutInMinutes: 120
pool:
vmImage: $(IMAGE_POOL)
steps:
- script: ls -al /Applications/
displayName: "Contents of /Applications"
- script: |
sudo xcode-select --switch "/Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer"
displayName: "$(IMAGE_POOL) - Xcode $(XCODE_VERSION)"
- script: ruby -v
displayName: "ruby version"
- script: xcrun -f xcodebuild
displayName: "location of xcodebuild"
- script: xcrun xcodebuild -version
displayName: "version of xcodebuild"
- script: |
echo "install: --no-document --env-shebang" > ~/.gemrc
echo "update: --no-document --env-shebang" >> ~/.gemrc
displayName: "install .gemrc"
- script: scripts/ci/jenkins/simctl.sh
displayName: "ensure CoreSimulator ready"
- script: gem update --system
displayName: "update ruby gems executable - aka 'gem'"
- script: gem uninstall -Vax --force --no-abort-on-dependent run_loop
displayName: "uninstall run_loop gem"
- script: |
gem install bundler
bundle install --retry=3 --jobs=4
displayName: "install bundler and gems"
- script: rake install
displayName: "install run_loop"
- script: bundle exec run-loop simctl manage-processes
displayName: "manage CoreSimulator processes"
- script: bundle exec rspec spec/lib
displayName: "unit tests"
- script: scripts/ci/jenkins/test/cli.sh
displayName: "cli tests"
- script: scripts/ci/jenkins/test/integration.sh
displayName: "integration tests"