fix: enable Jenkins find changes
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d142797b1f
commit
2d129dde01
|
@ -125,10 +125,10 @@ pipeline {
|
||||||
sh "docker-compose ${env.COMPOSE_PARAMS} pull db"
|
sh "docker-compose ${env.COMPOSE_PARAMS} pull db"
|
||||||
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
||||||
|
|
||||||
// def modules = sh(script: 'node test/cypress/docker/find/find.js', returnStdout: true).trim()
|
def modules = sh(script: 'node test/cypress/docker/find/find.js', returnStdout: true).trim()
|
||||||
// echo "E2E MODULES: ${modules}"
|
echo "E2E MODULES: ${modules}"
|
||||||
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ --init") {
|
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ --init") {
|
||||||
sh "sh test/cypress/docker/cypressParallel.sh 1"
|
sh "sh test/cypress/docker/cypressParallel.sh 1 '${modules}'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
find 'test/cypress/integration' \
|
|
||||||
-mindepth 1 \
|
|
||||||
-maxdepth 1 \
|
|
||||||
-type d | \
|
|
||||||
xargs -P "$1" -I {} sh -c '
|
|
||||||
echo "🔷 {}" &&
|
|
||||||
xvfb-run -a cypress run \
|
|
||||||
--headless \
|
|
||||||
--spec "{}" \
|
|
||||||
--quiet \
|
|
||||||
> /dev/null
|
|
||||||
'
|
|
||||||
wait
|
|
|
@ -25,7 +25,7 @@ async function getChangedModules() {
|
||||||
if (change.startsWith(E2E_PATH)) changedArray.push(change);
|
if (change.startsWith(E2E_PATH)) changedArray.push(change);
|
||||||
changedModules = new Set(changedArray);
|
changedModules = new Set(changedArray);
|
||||||
}
|
}
|
||||||
return [...changedModules].join(' ');
|
return [...changedModules].join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
getChangedModules()
|
getChangedModules()
|
||||||
|
|
|
@ -44,6 +44,6 @@ docker run -it --rm \
|
||||||
-e CI \
|
-e CI \
|
||||||
-e TZ \
|
-e TZ \
|
||||||
lilium-dev \
|
lilium-dev \
|
||||||
bash -c "sh test/cypress/docker/cypressParallel.sh 2 $files"
|
bash -c "sh test/cypress/docker/cypressParallel.sh 2 '$files'"
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
Loading…
Reference in New Issue