mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-06-09 20:00:01 +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
|
@ -31,8 +31,8 @@ jobs:
|
|||
command: |
|
||||
if [ -z "<< pipeline.git.base_revision >>" ]; then
|
||||
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
|
||||
echo "Changes in py<< parameters.python-version >>-requirements.txt, run license check."
|
||||
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 .allowed-licenses or py<< parameters.python-version >>-requirements.txt, run license check."
|
||||
else
|
||||
echo "No relevant changes found, skip running license check."
|
||||
circleci-agent step halt
|
||||
|
@ -56,6 +56,10 @@ workflows:
|
|||
all-tests:
|
||||
jobs:
|
||||
- test:
|
||||
<<: *version-matrix
|
||||
matrix:
|
||||
parameters:
|
||||
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"]
|
||||
- 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