From 601f70f8fe6e2094a1ec5b71c25a93579ab1e6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ridderstr=C3=B6m?= Date: Sun, 30 Jul 2017 20:28:42 +0200 Subject: [PATCH] Add script for CI job to check git log for non @lyx.org-adressses The idea is to let a CI job regurlarly invoke this script in order to check that there hasn't been any new commits where the author of the commit doesn't have an @lyx.org e-mail address. If this is the case, the CI job is expected to fail and a warning e-mail will be sent to lyx-devel@lists.lyx.org. --- development/CI/README | 5 + ...it_log_for_unrecognised_email_addresses.sh | 93 +++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 development/CI/README create mode 100755 development/CI/bin/check_git_log_for_unrecognised_email_addresses.sh diff --git a/development/CI/README b/development/CI/README new file mode 100644 index 0000000000..3b21f295bd --- /dev/null +++ b/development/CI/README @@ -0,0 +1,5 @@ +This folder and its subfolders are used by LyX's continuous integration (CI) system. + +Structure: +- bin/ :: Contains scripts used by CI jobs + diff --git a/development/CI/bin/check_git_log_for_unrecognised_email_addresses.sh b/development/CI/bin/check_git_log_for_unrecognised_email_addresses.sh new file mode 100755 index 0000000000..d6ca54794b --- /dev/null +++ b/development/CI/bin/check_git_log_for_unrecognised_email_addresses.sh @@ -0,0 +1,93 @@ +#!/bin/bash +# +# +CMD=$1 +SINCE_DATE=2015-01-01 +FORMAT='%h %ai name=%an email=%ae' +SCRIPT=$0 + +function show_help() { + cat <