From ea7982e0efad9e93fe6b376f22cdd559d215c61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Bence?= Date: Fri, 8 May 2020 22:22:44 +0200 Subject: [PATCH 1/2] fix ci cache --- .drone.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 27c66e4..d8a7359 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,7 +40,7 @@ steps: environment: PRODUCER_REDIS: cache commands: - - pip3 install -r requirements.txt + - pip3 install --cache-dir='./.pipcache' -r requirements.txt - pytest integtest.py - name: build-app @@ -59,8 +59,8 @@ steps: - name: make_docs image: python:3.8 commands: - - pip3 install Sphinx sphinx_rtd_theme - - pip3 install -r requirements.txt + - pip3 install --cache-dir='./.pipcache' Sphinx sphinx_rtd_theme + - pip3 install --cache-dir='./.pipcache' -r requirements.txt - cd docs - make html @@ -121,4 +121,5 @@ volumes: - name: dockersock temp: {} - name: cache - temp: {} + host: + path: "/tmp/cache" From d82cc3910b5ab1234103dee5063f82aad9e76599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Bence?= Date: Fri, 8 May 2020 23:34:06 +0200 Subject: [PATCH 2/2] use cache at unit_test step --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d8a7359..e92eb5b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,7 +32,7 @@ steps: environment: PRODUCER_REDIS: cache commands: - - pip3 install -r requirements.txt + - pip3 install --cache-dir='./.pipcache' -r requirements.txt - pytest test.py - name: integration_test