summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-25 04:42:25 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-25 04:42:25 -0200
commitb1370ded65989ecadba740227dd851b4abdc9412 (patch)
tree1407711f4b7db810089734c08555c6e691004bea
parent999ee2333d58e9fa0768c186e12b8a9cb213ca1a (diff)
downloadserverdata-b1370ded65989ecadba740227dd851b4abdc9412.tar.gz
serverdata-b1370ded65989ecadba740227dd851b4abdc9412.tar.bz2
serverdata-b1370ded65989ecadba740227dd851b4abdc9412.tar.xz
serverdata-b1370ded65989ecadba740227dd851b4abdc9412.zip
Test a new CI
-rw-r--r--.gitlab-ci.yml6
-rw-r--r--.tools/jobs/licensecheck.sh26
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