fix: refs #6695 try parallel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
aae343fb25
commit
81ad9402ee
|
@ -185,22 +185,23 @@ def cleanDockerE2E() {
|
||||||
def runTestsInParallel() {
|
def runTestsInParallel() {
|
||||||
// def integrationTests = sh(script: "ls -d test/cypress/integration/*/ || echo ''", returnStdout: true).trim().split('\n')
|
// def integrationTests = sh(script: "ls -d test/cypress/integration/*/ || echo ''", returnStdout: true).trim().split('\n')
|
||||||
def integrationTests = ['test/cypress/integration/claim/', 'test/cypress/integration/client/']
|
def integrationTests = ['test/cypress/integration/claim/', 'test/cypress/integration/client/']
|
||||||
|
|
||||||
def tasks = [:]
|
def tasks = [:]
|
||||||
|
|
||||||
integrationTests.each { testFolder ->
|
integrationTests.each { testFolder ->
|
||||||
if (testFolder.trim()) { // Evita procesar líneas vacías
|
if (testFolder.trim()) {
|
||||||
def folderName = testFolder.replaceAll('test/cypress/integration/', '').replaceAll('/', '')
|
def folderName = testFolder.replaceAll('test/cypress/integration/', '').replaceAll('/', '')
|
||||||
folderName = folderName.replaceAll('[^a-zA-Z0-9_-]', '') // Seguridad en nombres de red
|
folderName = folderName.replaceAll('[^a-zA-Z0-9_-]', '') // Seguridad en nombres de red
|
||||||
env.CYPRESS_SPEC="test/cypress/integration/${folderName}/**/*.spec.js"
|
env.CYPRESS_SPEC="test/cypress/integration/${folderName}/**/*.spec.js"
|
||||||
|
|
||||||
tasks["e2e_${folderName}"] = {
|
tasks["e2e_${folderName}"] = {
|
||||||
sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up -d back vn-database"
|
script {
|
||||||
sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up -d front"
|
sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up -d back vn-database"
|
||||||
sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up e2e"
|
sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up -d front"
|
||||||
|
sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up e2e"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parallel tasks
|
parallel tasks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue