From 3449827636ae29e6d0d766ea6657bd7facdb50d2 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Fri, 8 May 2020 15:02:15 +0200
Subject: [PATCH] Try to add badges

---
 .gitlab-ci.yml | 19 +++++++++++++++++++
 README.md      |  2 ++
 2 files changed, 21 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..681f7ace
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,19 @@
+stages:
+    - build
+
+create_badge_svg:
+  stage: build
+  image: python:3.6.6
+  tags:
+    - docker
+  script:
+    - echo "Python other dependencies installation"
+  after_script:
+    - pip install anybadge
+    - commits=$(git rev-list --all --count)
+    - anybadge -l commits -v $commits -f commits.svg -c green
+  artifacts:
+    paths:
+        - commits.svg
+    when: always
+    expire_in: 4 weeks
diff --git a/README.md b/README.md
index 025f69a9..719b76ad 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
 # lektor mk 7
 
+[![commits count](https://git.iiens.net/martin2018/lektor/badges/master/commits.svg)](https://git.iiens.net/martin2018/lektor/-/commits/master)
+
 A Karaoke player made to replace the old bash scripts on Sakura.
 They will enable one to have a database and make requests over the network.
 
-- 
GitLab