forked from oss-review-toolkit/ort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStaticAnalysis.yml
50 lines (44 loc) · 1.29 KB
/
StaticAnalysis.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
jobs:
- job: StaticAnalysis
pool:
vmImage: ubuntu-18.04
steps:
- checkout: self
fetchDepth: 1
submodules: false
- task: Cache@2
inputs:
key: '"$(Agent.OS)" | detekt | gradle-caches | gradle.properties, settings.gradle.kts, **/build.gradle.kts'
restoreKeys: |
"$(Agent.OS)" | detekt | gradle-caches
path: $(GRADLE_USER_HOME)/caches
displayName: Cache Gradle Caches
- task: Cache@2
inputs:
key: '"$(Agent.OS)" | gradle-wrapper | gradle/wrapper/gradle-wrapper.properties'
restoreKeys: |
"$(Agent.OS)" | gradle-wrapper
path: $(GRADLE_USER_HOME)/wrapper/dists
displayName: Cache Gradle Wrapper
- task: Gradle@2
displayName: Detekt
inputs:
gradleWrapperFile: gradlew
options: --no-daemon --stacktrace
tasks: detekt
javaHomeOption: JDKVersion
jdkVersionOption: 1.11
gradleOptions: -Xmx8192m
- task: UsePythonVersion@0
displayName: Enable Python 3.6
inputs:
versionSpec: 3.6
addToPath: true
architecture: x64
- bash: |
pip install --user reuse
~/.local/bin/reuse lint
displayName: Check REUSE Compliance
# Ensure that any running Gradle daemon is stopped before caching starts.
- bash: ./gradlew --stop
displayName: Stop Gradle Daemon