File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,10 @@ WORKDIR /scancode-toolkit
37
37
# Copy sources into docker container
38
38
COPY . /scancode-toolkit
39
39
40
- # Run scancode once for initial configuration, with
41
- # --reindex-licenses to create the base license index
42
- RUN ./scancode --reindex-licenses
40
+ # Initial configuration using ./configure, scancode-reindex-licenses to build
41
+ # the base license index
42
+ RUN ./configure \
43
+ && ./venv/bin/scancode-reindex-licenses
43
44
44
45
# Add scancode to path
45
46
ENV PATH=/scancode-toolkit:$PATH
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
10
+
11
+ # ###############################################################################
12
+ # Tests building with docker
13
+ # ###############################################################################
14
+
15
+
16
+ - job : test_build_and_run_with_docker
17
+ steps :
18
+ - task : Docker@2
19
+ displayName : Check that building and running using Docker succeeds
20
+ inputs :
21
+ command : ' build'
22
+ Dockerfile : ' **/Dockerfile'
23
+ tags : |
24
+ 'scancode-toolkit'
25
+ 'scancode-toolkit:$(Build.BuildId)'
26
+ - script : |
27
+ docker run -v $PWD/:/project scancode-toolkit -clipeu \
28
+ --json-pp /project/scan-result.json /project/apache-2.0.LICENSE
29
+ displayName: 'Test run'
30
+
31
+
10
32
# ###############################################################################
11
33
# These jobs are using VMs and Azure-provided Pythons 3.8
12
34
# ###############################################################################
You can’t perform that action at this time.
0 commit comments