|
|
@ -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" ]
|
|
|
|