From 964e25d46aed1a4abd401fc3a09632e02070dbef Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 6 Mar 2020 08:49:22 +0100 Subject: [PATCH] run test commands in virtualenv --- .drone.jsonnet | 16 ++++++++-------- .drone.yml | 30 +++++++++++++++--------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index d3cd828..39a5fe6 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -6,8 +6,8 @@ local PythonVersion(pyversion='3.5') = { }, commands: [ 'pip install pipenv -qq', - 'pipenv install --dev', - 'docker-tidy --help', + 'pipenv install --dev --keep-outdated', + 'pipenv run docker-tidy --help', ], depends_on: [ 'clone', @@ -30,8 +30,8 @@ local PipelineLint = { }, commands: [ 'pip install pipenv -qq', - 'pipenv install --dev', - 'flake8 ./dockertidy', + 'pipenv install --dev --keep-outdated', + 'pipenv run flake8 ./dockertidy', ], }, ], @@ -56,9 +56,9 @@ local PipelineDeps = { }, commands: [ 'pip install pipenv -qq', - 'pipenv install --dev', + 'pipenv install --dev --keep-outdated', 'pipenv check', - 'pipenv-sync check', + 'pipenv run pipenv-sync check', ], }, ], @@ -107,8 +107,8 @@ local PipelineSecurity = { }, commands: [ 'pip install pipenv -qq', - 'pipenv install --dev', - 'bandit -r ./dockertidy -x ./dockertidy/tests', + 'pipenv install --dev --keep-outdated', + 'pipenv run bandit -r ./dockertidy -x ./dockertidy/tests', ], }, ], diff --git a/.drone.yml b/.drone.yml index 0ab2568..babc413 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,8 +11,8 @@ steps: image: python:3.7 commands: - pip install pipenv -qq - - pipenv install --dev - - flake8 ./dockertidy + - pipenv install --dev --keep-outdated + - pipenv run flake8 ./dockertidy environment: PY_COLORS: 1 @@ -35,9 +35,9 @@ steps: image: python:3.7 commands: - pip install pipenv -qq - - pipenv install --dev + - pipenv install --dev --keep-outdated - pipenv check - - pipenv-sync check + - pipenv run pipenv-sync check environment: PY_COLORS: 1 @@ -63,8 +63,8 @@ steps: image: python:3.5 commands: - pip install pipenv -qq - - pipenv install --dev - - docker-tidy --help + - pipenv install --dev --keep-outdated + - pipenv run docker-tidy --help environment: PY_COLORS: 1 depends_on: @@ -74,8 +74,8 @@ steps: image: python:3.6 commands: - pip install pipenv -qq - - pipenv install --dev - - docker-tidy --help + - pipenv install --dev --keep-outdated + - pipenv run docker-tidy --help environment: PY_COLORS: 1 depends_on: @@ -85,8 +85,8 @@ steps: image: python:3.7 commands: - pip install pipenv -qq - - pipenv install --dev - - docker-tidy --help + - pipenv install --dev --keep-outdated + - pipenv run docker-tidy --help environment: PY_COLORS: 1 depends_on: @@ -96,8 +96,8 @@ steps: image: python:3.8 commands: - pip install pipenv -qq - - pipenv install --dev - - docker-tidy --help + - pipenv install --dev --keep-outdated + - pipenv run docker-tidy --help environment: PY_COLORS: 1 depends_on: @@ -125,8 +125,8 @@ steps: image: python:3.7 commands: - pip install pipenv -qq - - pipenv install --dev - - bandit -r ./dockertidy -x ./dockertidy/tests + - pipenv install --dev --keep-outdated + - pipenv run bandit -r ./dockertidy -x ./dockertidy/tests environment: PY_COLORS: 1 @@ -486,6 +486,6 @@ depends_on: --- kind: signature -hmac: 19f4fda6c951d44a90518e229013e8b031ed950b09e18d09b2c42087a44d7760 +hmac: 2c54ff3a3dc90b117c73366e792c458510974061137d6aea3113e08ae9e81954 ...