From b5a9927dd3f4a1d81a3db3d85d7722dbbf5d9d5b Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sat, 6 Feb 2021 22:20:08 +0800 Subject: Jenkinsfile: install python modules. --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index bc1ff0e..b19b3c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,8 +20,8 @@ pipeline { steps { echo 'Testing..' sh 'sudo docker run -d -p 4444:4444 selenium/standalone-chrome' - sh 'python3 -c "import pytest" || pip3 install pytest -U -q' - sh 'python3 -c "import pytest" || pip3 install selenium -U -q' + sh 'pip3 install pytest -U -q' + sh 'pip3 install selenium -U -q' sh 'python3 -m pytest ./app/test/test_signup.py' sh 'python3 -m pytest ./app/test/test_login.py' sh 'python3 -m pytest ./app/test/test_next_essay.py' -- cgit v1.2.1