Skip to content
Snippets Groups Projects
Commit e49e11eb authored by Saralegui Vallejo, Unai's avatar Saralegui Vallejo, Unai
Browse files

add pylint badges description

parent f710af1c
No related branches found
No related tags found
No related merge requests found
...@@ -4,17 +4,20 @@ You can include the jobs in this repository's YAML files as follows: ...@@ -4,17 +4,20 @@ You can include the jobs in this repository's YAML files as follows:
```yml ```yml
include: include:
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/virtualenv.yml - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/base.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/pylint.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/install_dependencies.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/test.yml - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/test.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/pages.yml - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/pages.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/artifactory.yml - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/artifactory.yml
```
You can include the execution order in yout .gitlab-ci.yml file as follows: You can include the execution order in yout .gitlab-ci.yml file as follows:
```yml ```yml
stages: stages:
- virtualenv - base
- code_analysis
- install_dependencies
- test - test
- deploy # pages and artifactory upload - deploy # pages and artifactory upload
``` ```
...@@ -25,14 +28,31 @@ An example of a valid .gitlab-ci.yml can be: ...@@ -25,14 +28,31 @@ An example of a valid .gitlab-ci.yml can be:
```yml ```yml
include: include:
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/virtualenv.yml - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/base.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/pylint.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/install_dependencies.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/test.yml - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/test.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/pages.yml - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/pages.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/artifactory.yml - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/python-packages/artifactory.yml
stages: stages:
- virtualenv - base
- code_analysis
- install_dependencies
- test - test
- deploy - deploy
variables:
MODULE_FOLDER: "folder_name" # name of the folder with the python module that will be checked by code_analysis:pylint job
``` ```
## Gitlab badges
The [code_analysis:pylint](pylint.yml) job included in this repository checks the code and generates the log and the badge with the overall score
that can be added to the gitlab repository.
For doing so go to Settings > General > Badges and add a new badge with the following values:
Link: https://git.code.tecnalia.com/%{project_path}/-/jobs/artifacts/%{default_branch}/raw/pylint/pylint.log?job=pylint
Badge image URL: https://git.code.tecnalia.com/%{project_path}/-/jobs/artifacts/%{default_branch}/raw/pylint/pylint.svg?job=pylint
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment