Skip to content

Commit 3accb8c

Browse files
committed
Added iOS building task.
1 parent 049050b commit 3accb8c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

azure-pipelines.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ steps:
2626
displayName: 'Install dependencies'
2727

2828
- script: |
29+
rm -R ../react-native-azurenotificationhub-sample/node_modules/react-native-azurenotificationhub
2930
cp -R ../react-native-azurenotificationhub ../react-native-azurenotificationhub-sample/node_modules
3031
displayName: 'Copying react-native-azurenotificationhub'
3132

@@ -36,8 +37,27 @@ steps:
3637
displayName: 'Run unit tests'
3738

3839
- task: Gradle@2
40+
displayName: 'Building Android'
3941
inputs:
4042
workingDirectory: '../react-native-azurenotificationhub-sample/android'
4143
gradleWrapperFile: '../react-native-azurenotificationhub-sample/android/gradlew'
4244
tasks: 'assembleRelease'
4345
continueOnError: false
46+
47+
- script: |
48+
cd ../react-native-azurenotificationhub-sample/ios
49+
pod install
50+
sudo cp -R ../node_modules/react-native-azurenotificationhub/ios Pods/RNAzureNotificationHub
51+
displayName: 'Install CocoaPods dependencies'
52+
53+
- task: Xcode@5
54+
displayName: 'Building iOS'
55+
inputs:
56+
actions: 'build'
57+
scheme: 'ReactNativeAzureNotificationHubSample'
58+
sdk: 'iphoneos'
59+
configuration: 'Release'
60+
xcWorkspacePath: '../react-native-azurenotificationhub-sample/ios/ReactNativeAzureNotificationHubSample.xcworkspace'
61+
xcodeVersion: '10'
62+
signingOption: 'nosign'
63+
useXcpretty: 'false'

0 commit comments

Comments
 (0)