Skip to content

Commit

Permalink
Azure: Check for REUSE compliance in the static analysis job
Browse files Browse the repository at this point in the history
See https://reuse.software/dev/#ci.

Signed-off-by: Martin Nonnenmacher <[email protected]>
  • Loading branch information
mnonnenmacher committed Apr 29, 2020
1 parent 17ee9c2 commit c3f4f7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .azure-pipelines/LinuxAnalyzerTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ jobs:
echo "##vso[task.setvariable variable=path;]$PATH"
displayName: Install Required Tools
# TODO: Add a step to run "reuse lint" (or maybe a separate job).

# Clone repository.
- checkout: self
fetchDepth: 1
Expand Down
12 changes: 12 additions & 0 deletions .azure-pipelines/StaticAnalysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ jobs:
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

0 comments on commit c3f4f7d

Please sign in to comment.