Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ 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 using ./configure, scancode-reindex-licenses to build
# the base license index
RUN ./configure \
&& ./venv/bin/scancode-reindex-licenses

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

jobs:


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


- job: test_build_and_run_with_docker
steps:
- task: Docker@2
displayName: Check that building and running using Docker succeeds
inputs:
command: 'build'
Dockerfile: '**/Dockerfile'
tags: |
'scancode-toolkit'
'scancode-toolkit:$(Build.BuildId)'
- script: |
docker run -v $PWD/:/project scancode-toolkit -clipeu \
--json-pp /project/scan-result.json /project/apache-2.0.LICENSE
displayName: 'Test run'


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