1010 vmImage : ' macOS-10.13'
1111
1212steps :
13- - checkout : self
14- path : react-native-azurenotificationhub
15-
1613- script : |
17- git clone https://github.com/phongcao/react-native-azurenotificationhub- sample.git ../react-native-azurenotificationhub-sample
18- displayName : ' Cloning react-native-azurenotificationhub- sample'
14+ mv ./ sample ../
15+ displayName : ' Prepare sample project '
1916
2017- task : NodeTool@0
2118 inputs :
@@ -24,34 +21,35 @@ steps:
2421
2522- script : npm install
2623 displayName : ' Install dependencies'
27- workingDirectory : ' ../react-native-azurenotificationhub- sample'
24+ workingDirectory : ' ../sample'
2825
2926- script : |
30- rm -R ../react-native-azurenotificationhub-sample/node_modules/react-native-azurenotificationhub
31- cp -R ../react-native-azurenotificationhub ../react-native-azurenotificationhub-sample/node_modules
32- displayName : ' Copying react-native-azurenotificationhub'
27+ rm -R ./node_modules/react-native-azurenotificationhub/*
28+ cp -R ../s/* ./node_modules/react-native-azurenotificationhub/
29+ displayName : ' Copying react-native-azurenotificationhub'
30+ workingDirectory : ' ../sample'
3331
3432- script : npm run lint
3533 displayName : ' Run lint'
36- workingDirectory : ' ../react-native-azurenotificationhub- sample'
34+ workingDirectory : ' ../sample'
3735
3836- script : npm run test
3937 displayName : ' Run unit tests'
40- workingDirectory : ' ../react-native-azurenotificationhub- sample'
38+ workingDirectory : ' ../sample'
4139
4240- task : Gradle@2
4341 displayName : ' Building Android'
4442 inputs :
45- workingDirectory : ' ../react-native-azurenotificationhub- sample/android'
46- gradleWrapperFile : ' ../react-native-azurenotificationhub- sample/android/gradlew'
43+ workingDirectory : ' ../sample/android'
44+ gradleWrapperFile : ' ../sample/android/gradlew'
4745 tasks : ' assembleRelease'
4846 continueOnError : false
4947
5048- script : |
5149 pod install
5250 sudo cp -R ../node_modules/react-native-azurenotificationhub/ios Pods/RNAzureNotificationHub
5351 displayName : ' Install CocoaPods dependencies'
54- workingDirectory : ' ../react-native-azurenotificationhub- sample/ios'
52+ workingDirectory : ' ../sample/ios'
5553
5654- task : Xcode@5
5755 displayName : ' Building iOS'
6058 scheme : ' ReactNativeAzureNotificationHubSample'
6159 sdk : ' iphoneos'
6260 configuration : ' Release'
63- xcWorkspacePath : ' ../react-native-azurenotificationhub- sample/ios/ReactNativeAzureNotificationHubSample.xcworkspace'
61+ xcWorkspacePath : ' ../sample/ios/ReactNativeAzureNotificationHubSample.xcworkspace'
6462 xcodeVersion : ' 10'
6563 signingOption : ' nosign'
6664 useXcpretty : ' false'
0 commit comments