4
0

mount cache folder
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2020-05-06 13:31:06 +02:00
parent 0c0103f61c
commit 939c3acc7e
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,6 @@ steps:
image: "python:3.8" image: "python:3.8"
commands: commands:
- pip3 install --cache-dir='./.pipcache' pylint bandit mccabe - pip3 install --cache-dir='./.pipcache' pylint bandit mccabe
- pip3 install --cache-dir='./.pipcache' cython numpy==1.18.2
- pip3 install --cache-dir='./.pipcache' -r requirements.txt - pip3 install --cache-dir='./.pipcache' -r requirements.txt
- find . -name "*.py" -exec python3 -m py_compile '{}' \; - find . -name "*.py" -exec python3 -m py_compile '{}' \;
- find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi - find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
@ -63,4 +62,5 @@ steps:
volumes: volumes:
- name: cache - name: cache
temp: {} host:
path: /tmp/cache

View File

@ -7,6 +7,6 @@ ENV PIP_NO_CACHE_DIR=true
ENV TZ Europe/Budapest ENV TZ Europe/Budapest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN pip3 install cython numpy==1.18.2 && pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
ENTRYPOINT ["python3","main.py"] ENTRYPOINT ["python3","main.py"]