среда, 28 февраля 2018 г.

GitLab-ci gitinspector

We used gitinspector for generating statistics of work with gitlab project.

If we got error on clean installed Ubuntu 16.04,

apt-get install gitinspector
gitinspector

Traceback (most recent call last):
  File "/usr/bin/gitinspector", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

need install
apt-get install install python-setuptools -y

We can get extension files of project:

gitinspector -l

The extensions below were found in the repository history (extensions used during statistical analysis are marked):
* beforeobfuscating cache dist html [js] json lock md php scss svg twig txt xlf xml yml

It use for run gitinspector with parameter -f

Example:

gitinspector -F html -r -T -H -f dist,html,js,json,lock,md,php,scss,svg,twig,txt,xlf,xml,yml -x "var,bin,composer.lock,author:NameForExclude" --since="1/1/2017" --until="12/31/2017" > 2017.html

generate since to until date (--since="" --until=""), without list directories and author NameForExclude (-x), in html format (-F), included extensions (-f)

Комментариев нет:

Отправить комментарий