-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-pipelines.yml
96 lines (81 loc) · 2.4 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
trigger:
tags:
include:
- '*'
branches:
include:
- master
- develop
pr:
branches:
include:
- master
- develop
variables:
- name: EOCompliance-Mac
value: true
jobs:
- job:
strategy:
matrix:
BigSur-Xcode-13.2:
IMAGE_POOL: 'macOS-11'
XCODE_VERSION: '13.2'
Monterey-Xcode-13.3.1:
IMAGE_POOL: 'macOS-12'
XCODE_VERSION: '13.3.1'
Monterey-Xcode-13.4.1:
IMAGE_POOL: 'macOS-12'
XCODE_VERSION: '13.4.1'
timeoutInMinutes: 180
pool:
vmImage: $(IMAGE_POOL)
variables:
- group: XTCRunTimeArtifactsCI
steps:
- script: |
# Attempts to fix this problem:
# Unable to boot device due to insufficient system resources.
set -e
echo "### launchctl limits: before ###"
sudo launchctl limit
# 2500 is a hard limit
sudo launchctl limit maxproc 2048 2500
# values derived empirically
# 'unlimited' is recommended by Apple, but does not work => 10240
# which could be a function of the amount of RAM available.
sudo launchctl limit maxfiles 52428 600000
echo "### launchctl limits: after ###"
sudo launchctl limit
displayName: "Setting maxproc and maxfiles limits"
- script: |
set -e
sudo xcode-select --switch "/Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer"
echo "Xcode version: $(xcrun xcodebuild -version)"
echo "Xcode path: $(xcrun -f xcodebuild)"
echo "Xcode select path: $(xcode-select --print-path)"
displayName: "Select Xcode $(XCODE_VERSION)"
- script: |
set -e
git clone -b master https://$(CalabashKeychainGitHubAccessToken):[email protected]/xamarinhq/calabash-codesign.git
calabash-codesign/apple/create-keychain.sh
displayName: "Download and install keychain"
- script: |
set -e
ruby -v
echo -e "install: --no-document --env-shebang\nupdate: --no-document --env-shebang" > ~/.gemrc
bundle install
displayName: "Prepare Ruby environment"
- script: make build
displayName: "Make build"
- script: make unit-tests
displayName: "Make unit-tests"
- script: make integration-tests
displayName: "Make integration-tests"
- script: make rspec
displayName: "Make rspec"
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: 'reports/*.xml'
condition: always()