@@ -22,22 +22,45 @@ steps:
22
22
versionSpec : ' 10.15.3'
23
23
displayName : ' Install Node'
24
24
25
- - script : cd ../react-native-azurenotificationhub-sample && npm install
25
+ - script : npm install
26
26
displayName : ' Install dependencies'
27
+ workingDirectory : ' ../react-native-azurenotificationhub-sample'
27
28
28
29
- script : |
30
+ rm -R ../react-native-azurenotificationhub-sample/node_modules/react-native-azurenotificationhub
29
31
cp -R ../react-native-azurenotificationhub ../react-native-azurenotificationhub-sample/node_modules
30
32
displayName : ' Copying react-native-azurenotificationhub'
31
33
32
- - script : cd ../react-native-azurenotificationhub-sample && npm run lint
34
+ - script : npm run lint
33
35
displayName : ' Run lint'
36
+ workingDirectory : ' ../react-native-azurenotificationhub-sample'
34
37
35
- - script : cd ../react-native-azurenotificationhub-sample && npm run test
36
- displayName : ' Run unit tests'
38
+ - script : npm run test
39
+ displayName : ' Run unit tests'
40
+ workingDirectory : ' ../react-native-azurenotificationhub-sample'
37
41
38
42
- task : Gradle@2
43
+ displayName : ' Building Android'
39
44
inputs :
40
45
workingDirectory : ' ../react-native-azurenotificationhub-sample/android'
41
46
gradleWrapperFile : ' ../react-native-azurenotificationhub-sample/android/gradlew'
42
47
tasks : ' assembleRelease'
43
48
continueOnError : false
49
+
50
+ - script : |
51
+ pod install
52
+ sudo cp -R ../node_modules/react-native-azurenotificationhub/ios Pods/RNAzureNotificationHub
53
+ displayName : ' Install CocoaPods dependencies'
54
+ workingDirectory : ' ../react-native-azurenotificationhub-sample/ios'
55
+
56
+ - task : Xcode@5
57
+ displayName : ' Building iOS'
58
+ inputs :
59
+ actions : ' build'
60
+ scheme : ' ReactNativeAzureNotificationHubSample'
61
+ sdk : ' iphoneos'
62
+ configuration : ' Release'
63
+ xcWorkspacePath : ' ../react-native-azurenotificationhub-sample/ios/ReactNativeAzureNotificationHubSample.xcworkspace'
64
+ xcodeVersion : ' 10'
65
+ signingOption : ' nosign'
66
+ useXcpretty : ' false'
0 commit comments