Jenkins is using alpine images
continuous-integration/drone/push Build is failing
ci-tests/python-test/pipeline/head There was a failure building this commit

This commit is contained in:
2022-03-20 16:54:04 +02:00
parent 9aed1fcbe4
commit 64eca107b5
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ local Pipeline(name, image) = {
};
[
Pipeline("python-2", "python:2"),
Pipeline("python-3-5", "python:3.5"),
Pipeline("python-3-7", "python:3.7"),
Pipeline("python-3-8", "python:3.8"),
Pipeline("python-3-9", "python:3.9"),
Vendored
+2 -1
View File
@@ -26,13 +26,14 @@ pipeline {
stage('test') {
agent {
docker { image "python:$PY_VERSION"
args '-e DJANGO_SETTINGS_MODULE="locallibrary.settings"'}
args '-e DJANGO_SETTINGS_MODULE="locallibrary.settings" -u 0:0'}
}
environment {
PY_ENV = "/tmp/pitestenv"
}
steps {
sh '''
apk install --no-cache libpq-dev
python -m venv ${PY_ENV}
source ${PY_ENV}/bin/activate
export PATH=${PY_ENV}/bin:${PATH}