File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ trigger :
2
+ branches :
3
+ include :
4
+ - thcao/cicd
5
+ exclude :
6
+ - refs/tag/*
7
+
8
+ pool :
9
+ vmImage : ' macOS-10.13'
10
+
11
+ steps :
12
+ - checkout : self
13
+ path : react-native-azurenotificationhub
14
+
15
+ - script : |
16
+ git clone https://github.com/phongcao/react-native-azurenotificationhub-sample.git ../react-native-azurenotificationhub-sample
17
+ displayName : ' Cloning react-native-azurenotificationhub-sample'
18
+
19
+ - task : NodeTool@0
20
+ inputs :
21
+ versionSpec : ' 10.15.3'
22
+ displayName : ' Install Node'
23
+
24
+ - script : cd ../react-native-azurenotificationhub-sample && npm install
25
+ displayName : ' Install dependencies'
26
+
27
+ - script : |
28
+ cp -R ../react-native-azurenotificationhub ../react-native-azurenotificationhub-sample/node_modules
29
+ displayName : ' Copying react-native-azurenotificationhub'
30
+
31
+ - script : cd ../react-native-azurenotificationhub-sample && npm run lint
32
+ displayName : ' Run lint'
33
+
34
+ - script : cd ../react-native-azurenotificationhub-sample && npm run test
35
+ displayName : ' Run unit tests'
36
+
37
+ - task : Gradle@2
38
+ inputs :
39
+ workingDirectory : ' ../react-native-azurenotificationhub-sample/android'
40
+ gradleWrapperFile : ' ../react-native-azurenotificationhub-sample/android/gradlew'
41
+ tasks : ' assembleRelease'
42
+ continueOnError : false
You can’t perform that action at this time.
0 commit comments