Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ WORKDIR /scancode-toolkit
# Copy sources into docker container
COPY . /scancode-toolkit

# Run scancode once for initial configuration, with
# --reindex-licenses to create the base license index
RUN ./scancode --reindex-licenses
# Initial configuration
RUN ./configure

# Run scancode-reindex-licenses to build the base license index
RUN ./venv/bin/scancode-reindex-licenses

# Add scancode to path
ENV PATH=/scancode-toolkit:$PATH
Expand Down
21 changes: 21 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@

jobs:


################################################################################
# Tests building with docker
################################################################################


- job: test_build_and_scan_with_docker
steps:
- task: Docker@2
displayName: Check that building using Docker succeeds
inputs:
command: 'build'
Dockerfile: '**/Dockerfile'
tags: |
'scancode-toolkit'
'scancode-toolkit:$(Build.BuildId)'
- script: |
docker scan scancode-toolkit:$(Build.BuildId)
displayName: 'Scan image'


################################################################################
# These jobs are using VMs and Azure-provided Pythons 3.8
################################################################################
Expand Down