diff options
-rw-r--r-- | .gitlab-ci.yml | 6 | ||||
-rw-r--r-- | .tools/jobs/licensecheck.sh | 26 |
2 files changed, 32 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 982d03633..f50135134 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -203,6 +203,12 @@ mariadb_run_valgrind_latest: services: - mariadb:latest +.licensecheck: + stage: test + script: + - ./.tools/jobs/licensecheck.sh + image: debian:stable + ok_job: stage: ok script: diff --git a/.tools/jobs/licensecheck.sh b/.tools/jobs/licensecheck.sh new file mode 100644 index 000000000..28cd11993 --- /dev/null +++ b/.tools/jobs/licensecheck.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +aptget_update +aptget_install git-core gcc ca-certificates grep python + + +source ./.tools/scripts/init.sh + +do_init_data + +do_init_tools + +cd tools/licensecheck + +./serverdata.sh # >license.log + +#export RES=$(cat license.log) +#if [[ -n "${RES}" ]]; then +# echo "Detected missing licenses." +# cat license.log +# echo "Estimated total missing licenses:" +# wc -l license.log +# exit 1 +#fi +echo "Exiting with status zero because licensecheck errors are not considered critical" +exit 0 |