ARMmbed/mbed-tools-lib

View on GitHub
azure-pipelines/steps/generate-spdx-documents.yml

Summary

Maintainability
Test Coverage
steps:
  - bash: |
      echo "##vso[task.setvariable variable=temp_spdx_reports_path]licensing"
    displayName: 'Set variable for temporary SPDX reports dir'

  - bash: |
      mkdir -p $(temp_spdx_reports_path)
      generate-spdx --output-dir $(temp_spdx_reports_path)
    displayName: 'Generate SPDX documents'

  - script: |
      license-files
    displayName: 'Add copyright/licence notice.'

  - publish: $(temp_spdx_reports_path)
    artifact: SPDX
    displayName: 'Publish SPDX reports'
    condition: always()