From c41fb636d10a4e6f05aba2149e76c7fbd5cd5e78 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jul 2016 18:52:33 +0300 Subject: Add license check ci job. --- .tools/licensecheck.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 .tools/licensecheck.sh (limited to '.tools') diff --git a/.tools/licensecheck.sh b/.tools/licensecheck.sh new file mode 100755 index 00000000..47df18fa --- /dev/null +++ b/.tools/licensecheck.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +source ./.tools/init.sh + +clientdata_init + +aptget_update +aptget_install git-core gcc ca-certificates grep +rm -rf tools +gitclone https://gitlab.com/evol evol-tools.git tools + +cd tools/licensecheck + +./clientdata.sh >license.log +check_error $? + +export RES=$(cat license.log) +if [[ -n "${RES}" ]]; then + echo "Detected missing licesnes" + cat license.log + exit 1 +fi -- cgit v1.2.3-60-g2f50