run test commands in virtualenv

This commit is contained in:
Robert Kaussow 2020-03-06 08:49:22 +01:00
parent e771ec5d4d
commit 964e25d46a
2 changed files with 23 additions and 23 deletions

View File

@ -6,8 +6,8 @@ local PythonVersion(pyversion='3.5') = {
}, },
commands: [ commands: [
'pip install pipenv -qq', 'pip install pipenv -qq',
'pipenv install --dev', 'pipenv install --dev --keep-outdated',
'docker-tidy --help', 'pipenv run docker-tidy --help',
], ],
depends_on: [ depends_on: [
'clone', 'clone',
@ -30,8 +30,8 @@ local PipelineLint = {
}, },
commands: [ commands: [
'pip install pipenv -qq', 'pip install pipenv -qq',
'pipenv install --dev', 'pipenv install --dev --keep-outdated',
'flake8 ./dockertidy', 'pipenv run flake8 ./dockertidy',
], ],
}, },
], ],
@ -56,9 +56,9 @@ local PipelineDeps = {
}, },
commands: [ commands: [
'pip install pipenv -qq', 'pip install pipenv -qq',
'pipenv install --dev', 'pipenv install --dev --keep-outdated',
'pipenv check', 'pipenv check',
'pipenv-sync check', 'pipenv run pipenv-sync check',
], ],
}, },
], ],
@ -107,8 +107,8 @@ local PipelineSecurity = {
}, },
commands: [ commands: [
'pip install pipenv -qq', 'pip install pipenv -qq',
'pipenv install --dev', 'pipenv install --dev --keep-outdated',
'bandit -r ./dockertidy -x ./dockertidy/tests', 'pipenv run bandit -r ./dockertidy -x ./dockertidy/tests',
], ],
}, },
], ],

View File

@ -11,8 +11,8 @@ steps:
image: python:3.7 image: python:3.7
commands: commands:
- pip install pipenv -qq - pip install pipenv -qq
- pipenv install --dev - pipenv install --dev --keep-outdated
- flake8 ./dockertidy - pipenv run flake8 ./dockertidy
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
@ -35,9 +35,9 @@ steps:
image: python:3.7 image: python:3.7
commands: commands:
- pip install pipenv -qq - pip install pipenv -qq
- pipenv install --dev - pipenv install --dev --keep-outdated
- pipenv check - pipenv check
- pipenv-sync check - pipenv run pipenv-sync check
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
@ -63,8 +63,8 @@ steps:
image: python:3.5 image: python:3.5
commands: commands:
- pip install pipenv -qq - pip install pipenv -qq
- pipenv install --dev - pipenv install --dev --keep-outdated
- docker-tidy --help - pipenv run docker-tidy --help
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
@ -74,8 +74,8 @@ steps:
image: python:3.6 image: python:3.6
commands: commands:
- pip install pipenv -qq - pip install pipenv -qq
- pipenv install --dev - pipenv install --dev --keep-outdated
- docker-tidy --help - pipenv run docker-tidy --help
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
@ -85,8 +85,8 @@ steps:
image: python:3.7 image: python:3.7
commands: commands:
- pip install pipenv -qq - pip install pipenv -qq
- pipenv install --dev - pipenv install --dev --keep-outdated
- docker-tidy --help - pipenv run docker-tidy --help
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
@ -96,8 +96,8 @@ steps:
image: python:3.8 image: python:3.8
commands: commands:
- pip install pipenv -qq - pip install pipenv -qq
- pipenv install --dev - pipenv install --dev --keep-outdated
- docker-tidy --help - pipenv run docker-tidy --help
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
@ -125,8 +125,8 @@ steps:
image: python:3.7 image: python:3.7
commands: commands:
- pip install pipenv -qq - pip install pipenv -qq
- pipenv install --dev - pipenv install --dev --keep-outdated
- bandit -r ./dockertidy -x ./dockertidy/tests - pipenv run bandit -r ./dockertidy -x ./dockertidy/tests
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
@ -486,6 +486,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 19f4fda6c951d44a90518e229013e8b031ed950b09e18d09b2c42087a44d7760 hmac: 2c54ff3a3dc90b117c73366e792c458510974061137d6aea3113e08ae9e81954
... ...