-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.yml
52 lines (50 loc) · 1.96 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
trigger:
- master
pool:
vmImage: 'macOS 10.14'
strategy:
matrix:
# In bazel, the simulator hangs randomly for around 15 seconds when using Xcode 10.2 or Xcode 10.3.
# In order to check this, run CI also in Xcode 11.
# See: https://github.com/bazelbuild/rules_apple/issues/607#issuecomment-537211062
xcode-10.3:
DEVELOPER_DIR: /Applications/Xcode_10.3.app
xcode-11:
DEVELOPER_DIR: /Applications/Xcode_11.app
steps:
- script: |
sudo xcode-select -s "$DEVELOPER_DIR"
displayName: Select Xcode version
# Boot simulator in advance because:
# * It is needed as a workaround for the error https://github.com/facebook/xctool/issues/766 (See also: https://github.com/facebook/xctool/pull/767)
# * It makes testing faster in buck, as the simulator is already booted. See: https://github.com/airbnb/BuckSample/issues/121#issuecomment-532122181
- script: |
xcrun simctl boot "iPhone 8"
displayName: Boot simulator
- script: |
make install_tools
displayName: Install tools
- script: |
carthage bootstrap --platform ios --no-use-binaries
displayName: Install dependencies
# Run several operations on buck and bazel, so it is possible to compare how long they take to finish
# test after fresh installation
- script: make test BUILDTOOL=buck
displayName: test buck after fresh installation
- script: make test BUILDTOOL=bazel
displayName: test bazel after fresh installation
# clean
- script: make clean BUILDTOOL=buck
displayName: clean buck
- script: make clean BUILDTOOL=bazel
displayName: clean bazel
# test with 100% miss cache
- script: make test BUILDTOOL=buck
displayName: test buck with 100% miss cache
- script: make test BUILDTOOL=bazel
displayName: test bazel with 100% miss cache
# test with 0% miss cache
- script: make test BUILDTOOL=buck
displayName: test buck with 0% miss cache
- script: make test BUILDTOOL=bazel
displayName: test bazel with 0% miss cache