summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/gitstatsh.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-18 07:57:17 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-18 08:00:01 +0300
commit27d78b81bc7e5c7f17389e3ed8f1dc8eab0cf4ee (patch)
tree188bde0f43a2e80207752ba501952ecb49977b49 /tools/ci/jobs/gitstatsh.sh
parent74701b17fc28be2a9d293760dcb0935d4d45a006 (diff)
downloadmanaverse-27d78b81bc7e5c7f17389e3ed8f1dc8eab0cf4ee.tar.gz
manaverse-27d78b81bc7e5c7f17389e3ed8f1dc8eab0cf4ee.tar.bz2
manaverse-27d78b81bc7e5c7f17389e3ed8f1dc8eab0cf4ee.tar.xz
manaverse-27d78b81bc7e5c7f17389e3ed8f1dc8eab0cf4ee.zip
Add gitstatsh ci script for git stats [ci skip]
Diffstat (limited to 'tools/ci/jobs/gitstatsh.sh')
-rwxr-xr-xtools/ci/jobs/gitstatsh.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/ci/jobs/gitstatsh.sh b/tools/ci/jobs/gitstatsh.sh
new file mode 100755
index 000000000..4537920e4
--- /dev/null
+++ b/tools/ci/jobs/gitstatsh.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+export LOGFILE=gitstatsh.log
+
+source ./tools/ci/scripts/init.sh
+
+tools/ci/scripts/retry.sh pip install pandas
+check_error $?
+tools/ci/scripts/retry.sh pip install yattag
+check_error $?
+tools/ci/scripts/retry.sh git clone https://github.com/gzc/gitstats.git gitstatsh
+check_error $?
+git log --stat --no-merges --summary --decorate=false >repo_log
+check_error $?
+cd gitstatsh/v1
+python main.py ManaPlus ../../repo_log
+check_error $?
+mv web ../../stats2
+check_error $?
+cd ../..
+check_error $?
+ls -la