##// END OF EJS Templates
Jenkinsfile: run each py.test on a separate executor...
domruf -
r6536:8a60eb2b default
parent child Browse files
Show More
@@ -1,6 +1,7 b''
1 def createvirtualenv = ''
2 def activatevirtualenv = ''
3
1 node {
4 node {
2 def createvirtualenv = ''
3 def activatevirtualenv = ''
4 if (isUnix()) {
5 if (isUnix()) {
5 createvirtualenv = 'rm -r $JENKINS_HOME/venv/$JOB_NAME || true && virtualenv $JENKINS_HOME/venv/$JOB_NAME'
6 createvirtualenv = 'rm -r $JENKINS_HOME/venv/$JOB_NAME || true && virtualenv $JENKINS_HOME/venv/$JOB_NAME'
6 activatevirtualenv = '. $JENKINS_HOME/venv/$JOB_NAME/bin/activate'
7 activatevirtualenv = '. $JENKINS_HOME/venv/$JOB_NAME/bin/activate'
@@ -61,8 +62,11 b' node {'
61 echo "Caught: ${exc}"
62 echo "Caught: ${exc}"
62 }
63 }
63 }
64 }
64 def pytests = [:]
65 }
65 pytests['sqlite'] = {
66
67 def pytests = [:]
68 pytests['sqlite'] = {
69 node {
66 ws {
70 ws {
67 deleteDir()
71 deleteDir()
68 unstash name: 'kallithea'
72 unstash name: 'kallithea'
@@ -87,8 +91,11 b' node {'
87 }
91 }
88 }
92 }
89 }
93 }
90 if (isUnix()) {
94 }
91 pytests['de'] = {
95
96 pytests['de'] = {
97 node {
98 if (isUnix()) {
92 ws {
99 ws {
93 deleteDir()
100 deleteDir()
94 unstash name: 'kallithea'
101 unstash name: 'kallithea'
@@ -113,7 +120,11 b' node {'
113 junit 'pytest_de.xml'
120 junit 'pytest_de.xml'
114 }
121 }
115 }
122 }
116 pytests['mysql'] = {
123 }
124 }
125 pytests['mysql'] = {
126 node {
127 if (isUnix()) {
117 ws {
128 ws {
118 deleteDir()
129 deleteDir()
119 unstash name: 'kallithea'
130 unstash name: 'kallithea'
@@ -136,7 +147,11 b' node {'
136 junit 'pytest_mysql.xml'
147 junit 'pytest_mysql.xml'
137 }
148 }
138 }
149 }
139 pytests['postgresql'] = {
150 }
151 }
152 pytests['postgresql'] = {
153 node {
154 if (isUnix()) {
140 ws {
155 ws {
141 deleteDir()
156 deleteDir()
142 unstash name: 'kallithea'
157 unstash name: 'kallithea'
@@ -160,7 +175,7 b' node {'
160 }
175 }
161 }
176 }
162 }
177 }
163 stage('Tests') {
164 parallel pytests
165 }
166 }
178 }
179 stage('Tests') {
180 parallel pytests
181 }
General Comments 0
You need to be logged in to leave comments. Login now