Overall linting #3
17
.drone.yml
17
.drone.yml
@@ -12,21 +12,33 @@ steps:
|
|||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
|
volumes:
|
||||||
|
- name: pip_cache
|
||||||
|
path: /root/.cache/pip
|
||||||
|
|
||||||
- name: Lint - pylint
|
- name: Lint - pylint
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- pylint wsgi.py app/*.py
|
- pylint wsgi.py app/*.py
|
||||||
|
volumes:
|
||||||
|
- name: pip_cache
|
||||||
|
path: /root/.cache/pip
|
||||||
|
|
||||||
- name: Lint - flake8
|
- name: Lint - flake8
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- flake8 wsgi.py app/*.py
|
- flake8 wsgi.py app/*.py
|
||||||
|
volumes:
|
||||||
|
- name: pip_cache
|
||||||
|
path: /root/.cache/pip
|
||||||
|
|
||||||
- name: Security analysis with bandit
|
- name: Security analysis with bandit
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- bandit -r app/
|
- bandit -r app/
|
||||||
|
volumes:
|
||||||
|
- name: pip_cache
|
||||||
|
path: /root/.cache/pip
|
||||||
|
|
||||||
- name: Publish the image
|
- name: Publish the image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
@@ -41,3 +53,8 @@ steps:
|
|||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: pip_cache
|
||||||
|
host:
|
||||||
|
path: /tmp/drone/cache/pip_cache
|
||||||
Reference in New Issue
Block a user