diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-04 15:25:02 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-04 15:25:02 +0800 |
commit | 2151b7ab3abe66bf4a2333796157b6c64b3b10ae (patch) | |
tree | f550d1a02ea2fd6a5e6c40dfb691424f4443e851 | |
parent | 8221a5c3fa78bfaff41db7c51230019f357a8f4a (diff) |
Jenkinsfile: add testing component.
-rw-r--r-- | Jenkinsfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 0397a1d..2f7e84a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,6 +20,9 @@ pipeline { stage('TestIt') { steps { echo 'Testing..' + sh 'sudo docker run -d -P selenium/standalone-chrome' + sh 'python3 -m pytest app/test/test_signup.py' + sh 'sudo docker stop $(sudo docker ps -q --filter ancestor=selenium/standalone-chrome)' } } stage('DeployIt') { |