1717 - name : source
1818 description : The workspace with the source code.
1919 description : >-
20- Use to run pylint on the provided input source. If Poetry is being used
21- it will detect the poetry.lock file and install via requirements export.
20+ Use to run pylint on the provided input source.
21+ If Poetry or Pipenv is being used it will detect
22+ the poetry.lock and Pipfile file and install using them.
2223 params :
2324 - name : image
2425 description : The container image with pylint
4950 python -m pip install --upgrade pip poetry
5051 poetry config virtualenvs.create false
5152 poetry install
53+ elif [ -e "Pipfile" ]; then
54+ echo "Found Pipfile file: using pipenv ..."
55+ python -m pip install --upgrade pip pipenv
56+ pipenv install --system --dev
5257 elif [ -n "$(params.requirements-file)" ] && [ -e "$(params.requirements-file)" ]; then
5358 python -m pip install --user -r "$(params.requirements-file)"
5459 fi
7984 - name : source
8085 description : >-
8186 This task can be used to perform unit tests with pytest.
82- It supports both requirements.txt and poetry.lock files.
87+ It supports both requirements.txt, Pipfile, & poetry.lock files.
8388
8489 It also has the ability to create an environment variable
8590 that is sourced from a Secret. This allows you to define
@@ -118,6 +123,10 @@ spec:
118123 python -m pip install --upgrade pip poetry
119124 poetry config virtualenvs.create false
120125 poetry install
126+ elif [ -e "Pipfile" ]; then
127+ echo "Found Pipfile file: using pipenv ..."
128+ python -m pip install --upgrade pip pipenv
129+ pipenv install --system --dev
121130 elif -e "requirements.txt" ]; then
122131 python -m pip install --user -r requirements.txt
123132 fi
@@ -259,7 +268,7 @@ spec:
259268 default : " chrome"
260269 steps :
261270 - name : behave
262- image : rofrano/pipeline-selenium
271+ image : quay.io/ rofrano/pipeline-selenium
263272 workingDir : $(workspaces.source.path)
264273 env :
265274 - name : BASE_URL
@@ -278,6 +287,10 @@ spec:
278287 echo "Found poetry.lock file: using poetry"
279288 python -m pip install poetry poetry-plugin-export
280289 poetry export --with=dev -f requirements.txt --output requirements.txt
290+ elif [ -e "Pipfile" ]; then
291+ echo "Found Pipfile file: using pipenv ..."
292+ python -m pip install --upgrade pip pipenv
293+ pipenv requirements --dev > requirements.txt
281294 fi
282295 python -m pip install --user -r requirements.txt
283296
0 commit comments