From 439020049f5c3d9f548e41bc1ba116b74b1da78b Mon Sep 17 00:00:00 2001 From: Alexandre CHAZAL Date: Mon, 6 Dec 2021 20:08:12 +0100 Subject: [PATCH] fix(drone): added cache between tests --- .drone.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a3a5f38..0a44f92 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,21 +12,33 @@ steps: image: python commands: - pip install -r requirements.txt + volumes: + - name: pip_cache + path: /root/.cache/pip - name: Lint - pylint image: python commands: - pylint wsgi.py app/*.py + volumes: + - name: pip_cache + path: /root/.cache/pip - name: Lint - flake8 image: python commands: - flake8 wsgi.py app/*.py + volumes: + - name: pip_cache + path: /root/.cache/pip - name: Security analysis with bandit image: python commands: - bandit -r app/ + volumes: + - name: pip_cache + path: /root/.cache/pip - name: Publish the image image: plugins/docker @@ -40,4 +52,9 @@ steps: auto_tag: true when: branch: - - master \ No newline at end of file + - master + +volumes: + - name: pip_cache + host: + path: /tmp/drone/cache/pip_cache \ No newline at end of file