From 01f64ea9d8866bc1cc944690601f93c60a89ae46 Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Wed, 9 Sep 2020 16:30:08 +0200 Subject: [PATCH] Add badges --- .gitlab-ci.yml | 13 +++++++++++++ README.md | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 080607f..d5e2a22 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: ${CI_REGISTRY_IMAGE} stages: - test + - build doxec_unittest: stage: test @@ -23,3 +24,15 @@ README: - python3 setup.py install - bin/doxec --color README.md +badges: + image: python:3.7 + stage: build + script: + - pip install anybadge . + - anybadge -o --color teal -l License -v "MIT" -f license.svg + - anybadge -o --color "#006dad" -l PyPI -v $(python -c "import doxec; print(doxec.__version__)") -f pypi.svg + dependencies: [] + artifacts: + paths: + - "*.svg" + expire_in: never diff --git a/README.md b/README.md index 5f722ed..a1808db 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + +[](https://gitlab.sauerburger.com/frank/doxec/-/pipelines) +[](https://gitlab.sauerburger.com/frank/doxec/-/blob/master/LICENSE) +[](https://pypi.org/project/doxec/) + + Have you ever come across a tutorial or a documentation, which showed some example code snippets, which turned out to contain bugs, or are not in-sync with the most recent version of the software? I guess, everyone has, and it @@ -12,7 +18,7 @@ which parses codes examples from a documentation or a tutorial and runs them. This ensures that the code snippets work as intended. -# Installation [](https://gitlab.sauerburger.com/frank/doxec/commits/master) +# Installation You can install the package using pip -- GitLab