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
|
||||
|
||||
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
|
||||
settings:
|
||||
repo: registry.alxczl.fr/ldap-interface
|
||||
|
||||
@@ -12,4 +12,5 @@ ldap3
|
||||
Flask-WTF==1.0.0
|
||||
email-validator
|
||||
flake8
|
||||
pylint
|
||||
bandit
|
||||
Reference in New Issue
Block a user