forked from microsoft/react-native-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apple-job-react-native.yml
79 lines (69 loc) · 2.33 KB
/
apple-job-react-native.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
parameters:
packager_platform: ''
xcode_sdk: ''
xcode_configuration: ''
xcode_scheme: ''
xcode_actions_debug: ''
xcode_actions_release: ''
xcode_destination: ''
apply_office_patches: ''
slice_name: ''
xcode_version: ''
steps:
# Clean DerivedData
- script: |
rm -rf $(Build.Repository.LocalPath)/DerivedData
displayName: 'Clean DerivedData'
- template: apple-node-setup.yml
# Task Group: Xcode select proper version
- template: apple-xcode-select.yml
parameters:
slice_name: ${{ parameters.slice_name }}
xcode_version: ${{ parameters.xcode_version }}
- task: CmdLine@2
displayName: yarn install
inputs:
script: yarn install
- task: CmdLine@2
displayName: pod install
inputs:
script: |
cd RNTester
pod install
- task: ShellScript@2
displayName: 'Setup packager and WebSocket test server'
inputs:
scriptPath: '.ado/ado-test-setup.sh'
disableAutoCwd: true
cwd: ''
- bash: |
echo Preparing the packager for platform $PLATFORM
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
env:
PLATFORM: ${{ parameters.packager_platform }}
displayName: 'curl the packager'
- template: apple-xcode-build.yml
parameters:
xcode_sdk: ${{ parameters.xcode_sdk }}
xcode_configuration: Debug
xcode_workspacePath: RNTester/RNTesterPods.xcworkspace
xcode_scheme: ${{ parameters.xcode_scheme }}
xcode_actions: ${{ parameters.xcode_actions_debug }}
xcode_useXcpretty: true
xcode_destination: ${{ parameters.xcode_destination }}
- template: apple-xcode-build.yml
parameters:
xcode_sdk: ${{ parameters.xcode_sdk }}
xcode_configuration: Release
xcode_workspacePath: RNTester/RNTesterPods.xcworkspace
xcode_scheme: ${{ parameters.xcode_scheme }}
xcode_actions: ${{ parameters.xcode_actions_release }}
xcode_useXcpretty: false
xcode_destination: ${{ parameters.xcode_destination }}
- task: ShellScript@2
displayName: 'Cleanup packager and WebSocket test server'
inputs:
scriptPath: '.ado/ado-test-cleanup.sh'
disableAutoCwd: true
cwd: ''
condition: always()