-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
82 lines (81 loc) · 2.24 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
trigger:
- master
jobs:
- job: ktlint
timeoutInMinutes: 15
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
tasks: 'ktlint'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
gradleOptions: '-Xmx3072m'
sonarQubeRunAnalysis: false
- job: detekt
timeoutInMinutes: 15
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
tasks: 'detekt'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
gradleOptions: '-Xmx3072m'
sonarQubeRunAnalysis: false
- job: lint
timeoutInMinutes: 15
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
tasks: 'lintDebug'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
gradleOptions: '-Xmx3072m'
sonarQubeRunAnalysis: false
- job: build
timeoutInMinutes: 15
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
options: '-x ":app:stripDebugDebugSymbols"'
tasks: 'assembleDebug'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
gradleOptions: '-Xmx3072m'
sonarQubeRunAnalysis: false
- job: unitTests
timeoutInMinutes: 15
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
options: '--console plain -Pcoverage=true'
tasks: 'testDebug'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
gradleOptions: '-Xmx3072m'
sonarQubeRunAnalysis: false
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
pathToSources: '$(System.DefaultWorkingDirectory)/app/src/main/java'