forked from calabash/run_loop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
97 lines (77 loc) · 2.35 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
# https://msmobilecenter.visualstudio.com/Mobile-Center/_build/results?buildId=662289
trigger:
tags:
include:
- '*'
branches:
include:
- master
- develop
pr:
branches:
include:
- master
- develop
jobs:
- job:
strategy:
matrix:
Mojave-Xcode-10.3:
IMAGE_POOL: 'macOS-10.14'
XCODE_VERSION: '10.3'
Mojave-Xcode-11.3:
IMAGE_POOL: 'macOS-10.14'
XCODE_VERSION: '11.3.1'
Catalina-Xcode-11.0:
IMAGE_POOL: 'macOS-10.15'
XCODE_VERSION: '11'
Catalina-Xcode-11.1:
IMAGE_POOL: 'macOS-10.15'
XCODE_VERSION: '11.1'
Catalina-Xcode-11.2:
IMAGE_POOL: 'macOS-10.15'
XCODE_VERSION: '11.2'
Catalina-Xcode-11.3:
IMAGE_POOL: 'macOS-10.15'
XCODE_VERSION: '11.3'
Catalina-Xcode-11.4:
IMAGE_POOL: 'macOS-10.15'
XCODE_VERSION: '11.4'
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"