From 25b004dcd7729f9c6bc34a080fff165cf98fc62c Mon Sep 17 00:00:00 2001 From: Suwako Moriya Date: Sun, 26 Apr 2020 00:01:34 +0200 Subject: [PATCH] Fix Jenkinsfile --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fbbdfa2..3dba59f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,17 +4,17 @@ pipeline { stage('Test') { agent { docker { - image 'python:3.7' + image 'python:3.8' } } steps { - sh "pip install --user pipenv" - sh "pipenv sync" - sh 'pipenv run pytest -p no:warnings --junit-xml test-reports/results.xml' + sh "pip install --no-cache-dir -t python pipenv" + sh "PYTHONPATH=\$(pwd)/python PIPENV_VENV_IN_PROJECT=true python/bin/pipenv sync --sequential --dev" + sh "export PYTHONPATH=\$(pwd)/python && cd src && PIPENV_VENV_IN_PROJECT=true \${PYTHONPATH}/bin/pipenv run pytest -p no:warnings --junit-xml test-reports/results.xml" } post { always { - junit 'test-reports/results.xml' + junit 'src/test-reports/results.xml' } } }