mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-07-11 03:19:57 +02:00
Test triggering via .allowed-licenses
This commit is contained in:
parent
1232dee64a
commit
72ad03b4df
2 changed files with 12 additions and 4 deletions
|
@ -10,6 +10,10 @@ Apache Software License, BSD License
|
||||||
BSD
|
BSD
|
||||||
BSD License
|
BSD License
|
||||||
|
|
||||||
|
# Variants of the ISC License
|
||||||
|
ISCL
|
||||||
|
ISC License (ISCL)
|
||||||
|
|
||||||
# Variants of the LGPL
|
# Variants of the LGPL
|
||||||
GNU Library or Lesser General Public License (LGPL)
|
GNU Library or Lesser General Public License (LGPL)
|
||||||
LGPL
|
LGPL
|
||||||
|
|
|
@ -31,8 +31,8 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
if [ -z "<< pipeline.git.base_revision >>" ]; then
|
if [ -z "<< pipeline.git.base_revision >>" ]; then
|
||||||
echo "No previous build, run license check by default."
|
echo "No previous build, run license check by default."
|
||||||
elif git diff-tree --no-commit-id --name-only -r << pipeline.git.revision >> << pipeline.git.base_revision >> | grep py<< parameters.python-version >>-requirements.txt ; then
|
elif git diff-tree --no-commit-id --name-only -r << pipeline.git.revision >> << pipeline.git.base_revision >> | grep ".allowed-licenses\|py<< parameters.python-version >>-requirements.txt" ; then
|
||||||
echo "Changes in py<< parameters.python-version >>-requirements.txt, run license check."
|
echo "Changes in .allowed-licenses or py<< parameters.python-version >>-requirements.txt, run license check."
|
||||||
else
|
else
|
||||||
echo "No relevant changes found, skip running license check."
|
echo "No relevant changes found, skip running license check."
|
||||||
circleci-agent step halt
|
circleci-agent step halt
|
||||||
|
@ -56,6 +56,10 @@ workflows:
|
||||||
all-tests:
|
all-tests:
|
||||||
jobs:
|
jobs:
|
||||||
- test:
|
- test:
|
||||||
<<: *version-matrix
|
matrix:
|
||||||
|
parameters:
|
||||||
|
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"]
|
||||||
- license-scan:
|
- license-scan:
|
||||||
<<: *version-matrix
|
matrix:
|
||||||
|
parameters:
|
||||||
|
python-version: [ "3.6", "3.7", "3.8", "3.9" ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue