diff --git a/.drone.yml b/.drone.yml index ecd6889..a0177de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,13 @@ kind: pipeline name: default steps: +- name: pytest + image: python:3.6-alpine3.13 + commands: + - wget -O- https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - + - source $HOME/.poetry/env && poetry install + - source $HOME/.poetry/env && poetry run pytest + - name: docker image: plugins/docker settings: diff --git a/Dockerfile b/Dockerfile index dd4db5d..5a33c84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ RUN set -ex; \ COPY . /usr/src/kiwi_scp RUN set -ex; \ - pip3 --use-feature=in-tree-build install /usr/src/kiwi_scp + pip3 --no-cache-dir --use-feature=in-tree-build install /usr/src/kiwi_scp ENTRYPOINT ["kiwi"]