Skip to content

Commit 08bb581

Browse files
committed
Added initial azure pipelines.
1 parent 87b40ea commit 08bb581

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

azure-pipelines.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)