summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2021-02-06 22:18:06 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2021-02-06 22:18:06 +0800
commitce34cb682ad9a48758f03b4449788f0bf70629de (patch)
treefaaf80fb7d89138c8d060dfa1d7135683663c29f
parent691c87038ad80210055c3d8d7b71bc4001340f5a (diff)
Jenkinsfile: install python modules only when they are not there.
-rw-r--r--Jenkinsfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 3dc9b74..bc1ff0e 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 'python3 -c "import pytest" || pip3 install pytest -U -q'
+ sh 'python3 -c "import pytest" || 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'