Azure pipelines build (#227)
Adding new pipeline to run build Pipeline runs for every PR created to master and every merge to master Adding master branch pipeline status badges to readme
This commit is contained in:
Родитель
a867bc498e
Коммит
44c177652a
|
@ -10,7 +10,8 @@ Fluent UI for Android is a native library that provides the Office UI experience
|
|||
| Build Service | Status |
|
||||
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| App Center | [![Build status](https://build.appcenter.ms/v0.1/apps/7acc51be-c1e6-4351-8fa4-c4536fd42dd8/branches/master/badge)](https://appcenter.ms) |
|
||||
| Azure Pipelines | [![Build Status](https://dev.azure.com/microsoftdesign/fluentui-native/_apis/build/status/fluentui-android-CI-maven-publish)]
|
||||
| Build Pipeline | [![Build Status](https://dev.azure.com/microsoftdesign/fluentui-native/_apis/build/status/fluentui-android-CI-build-auto?branchName=master)] |
|
||||
| Release Pipeline | [![Build Status](https://dev.azure.com/microsoftdesign/fluentui-native/_apis/build/status/fluentui-android-CI-maven-publish?branchName=master)]
|
||||
|
||||
## Contents
|
||||
|
||||
|
|
|
@ -32,8 +32,20 @@ jobs:
|
|||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '$(jdkVersion)'
|
||||
options: '-PappCenterSecret=$(appCenterSecret) -PsigningKeyPassword=$(signingKeyPassword) -PsigningKeyStorePassword=$(signingKeyStorePassword) -POSSRHUsername=$(ossrhUsername) -POSSRHPassword=$(ossrhPassword) -PmavenUserName=$(mavenUsername) -PmavenPassword=$(mavenPassword) -PGPGSigningKeyID=$(gpgSignKey) -PGPGSigningPassword=$(gpgSignPassword) -PSigningSecretKeyRingFile=$(gpgSecretFileParentPath) -PSonatypeStagingProfileID=$(sonatypeStagingProfileId)'
|
||||
|
||||
- task: Gradle@2
|
||||
displayName: Start Unit tests
|
||||
displayName: Unit tests
|
||||
inputs:
|
||||
gradleWrapperFile: 'gradlew'
|
||||
tasks: 'testDevelopmentDebugUnitTest'
|
||||
publishJUnitResults: false
|
||||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '$(jdkVersion)'
|
||||
sonarQubeRunAnalysis: false
|
||||
spotBugsAnalysis: false
|
||||
|
||||
- task: Gradle@2
|
||||
displayName: Generate testApk
|
||||
inputs:
|
||||
gradleWrapperFile: 'gradlew'
|
||||
tasks: 'assembleDevelopmentDebugAndroidTest'
|
||||
|
@ -51,7 +63,7 @@ jobs:
|
|||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '$(jdkVersion)'
|
||||
publishJUnitResults: false
|
||||
|
||||
|
||||
- task: AndroidSigning@2
|
||||
displayName: 'Signing and aligning APK file(s) **/*.apk'
|
||||
inputs:
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
#Pipeline to run automatically when a PR is created and changes are pushed to master
|
||||
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
|
||||
- job: BuildTest
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- task: Gradle@2
|
||||
displayName: 'gradlew build'
|
||||
inputs:
|
||||
gradleWrapperFile: 'gradlew'
|
||||
tasks: 'assembleDevelopmentDebug'
|
||||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '$(jdkVersion)'
|
||||
|
||||
- task: Gradle@2
|
||||
displayName: Unit tests
|
||||
inputs:
|
||||
gradleWrapperFile: 'gradlew'
|
||||
tasks: 'testDevelopmentDebugUnitTest'
|
||||
publishJUnitResults: false
|
||||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '$(jdkVersion)'
|
||||
sonarQubeRunAnalysis: false
|
||||
spotBugsAnalysis: false
|
||||
|
||||
- task: Gradle@2
|
||||
displayName: Generate testApk
|
||||
inputs:
|
||||
gradleWrapperFile: 'gradlew'
|
||||
tasks: 'assembleDevelopmentDebugAndroidTest'
|
||||
publishJUnitResults: false
|
||||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '$(jdkVersion)'
|
||||
sonarQubeRunAnalysis: false
|
||||
spotBugsAnalysis: false
|
||||
|
||||
- task: Gradle@2
|
||||
displayName: Hydra Lab UI test
|
||||
inputs:
|
||||
gradleWrapperFile: 'gradlew'
|
||||
tasks: 'requestHydraLabTest -PappApkPath=$(build.sourcesdirectory)/FluentUI.Demo/build/outputs/apk/development/debug/FluentUI.Demo-development-debug.apk -PtestApkPath=$(build.sourcesdirectory)/FluentUI.Demo/build/outputs/apk/androidTest/development/debug/FluentUI.Demo-development-debug-androidTest.apk -PbuildFlavor=$(buildFlavor) -PtestSuiteName=$(testSuiteName) -PtimeOutSeconds=$(timeOutSeconds) -PdeviceIdentifier=$(deviceIdentifier) -PgroupTestType=$(groupTestType) -PreportAudience=TestLabOwner -PauthToken=$(authToken) -PpkgName=$(pkgName) -PtestPkgName=$(testPkgName) -PrunningType=$(runningType) -PframeworkType=$(frameworkType)'
|
||||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '$(jdkVersion)'
|
||||
publishJUnitResults: false
|
||||
|
Загрузка…
Ссылка в новой задаче