Skip to content

Commit 11a3b13

Browse files
authored
Merge pull request #87 from CatalystCode/thcao/cicd
Adding ci for Android
2 parents 87b40ea + e9725a1 commit 11a3b13

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
React Native module to support Azure Notification Hub push notifications on Android, iOS, and Windows.
44

5+
[![Build Status](https://dev.azure.com/phongthaicao/react-native-azurenotificationhub/_apis/build/status/CatalystCode.react-native-azurenotificationhub?branchName=master)](https://dev.azure.com/phongthaicao/react-native-azurenotificationhub/_apis/build/status/CatalystCode.react-native-azurenotificationhub?branchName=master)
6+
57
# Platform-specific Guides
68
- [Android](docs/android-installation.md)
79
- [iOS](docs/ios-installation.md)

azure-pipelines.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
trigger:
2+
branches:
3+
include:
4+
- master
5+
- releases/*
6+
exclude:
7+
- refs/tag/*
8+
9+
pool:
10+
vmImage: 'macOS-10.13'
11+
12+
steps:
13+
- checkout: self
14+
path: react-native-azurenotificationhub
15+
16+
- script: |
17+
git clone https://github.com/phongcao/react-native-azurenotificationhub-sample.git ../react-native-azurenotificationhub-sample
18+
displayName: 'Cloning react-native-azurenotificationhub-sample'
19+
20+
- task: NodeTool@0
21+
inputs:
22+
versionSpec: '10.15.3'
23+
displayName: 'Install Node'
24+
25+
- script: cd ../react-native-azurenotificationhub-sample && npm install
26+
displayName: 'Install dependencies'
27+
28+
- script: |
29+
cp -R ../react-native-azurenotificationhub ../react-native-azurenotificationhub-sample/node_modules
30+
displayName: 'Copying react-native-azurenotificationhub'
31+
32+
- script: cd ../react-native-azurenotificationhub-sample && npm run lint
33+
displayName: 'Run lint'
34+
35+
- script: cd ../react-native-azurenotificationhub-sample && npm run test
36+
displayName: 'Run unit tests'
37+
38+
- task: Gradle@2
39+
inputs:
40+
workingDirectory: '../react-native-azurenotificationhub-sample/android'
41+
gradleWrapperFile: '../react-native-azurenotificationhub-sample/android/gradlew'
42+
tasks: 'assembleRelease'
43+
continueOnError: false

0 commit comments

Comments
 (0)