feat(drone): added linting and analysis in the CI
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
22
.drone.yml
22
.drone.yml
@@ -8,7 +8,27 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: Install packages
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Lint - pylint
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- pylint wsgi.py app/*.py
|
||||||
|
|
||||||
|
- name: Lint - flake8
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- flake8 wsgi.py app/*.py
|
||||||
|
|
||||||
|
- name: Security analysis with bandit
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- bandit -r app/
|
||||||
|
|
||||||
|
- name: Publish the image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: registry.alxczl.fr/ldap-interface
|
repo: registry.alxczl.fr/ldap-interface
|
||||||
|
|||||||
@@ -12,4 +12,5 @@ ldap3
|
|||||||
Flask-WTF==1.0.0
|
Flask-WTF==1.0.0
|
||||||
email-validator
|
email-validator
|
||||||
flake8
|
flake8
|
||||||
|
pylint
|
||||||
bandit
|
bandit
|
||||||
Reference in New Issue
Block a user