diff --git a/.drone.jsonnet b/.drone.jsonnet index a18517f..db23596 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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"), diff --git a/Jenkinsfile b/Jenkinsfile index 14696dd..317d886 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}