test: refs #6695 build backend and frontend in parallel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-01-31 13:15:36 +01:00
parent 41bd5a424a
commit 0a2b481667
1 changed files with 16 additions and 17 deletions

33
Jenkinsfile vendored
View File

@ -105,25 +105,24 @@ pipeline {
sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git'
}
}
stage('Up Database') {
steps {
sh 'cd salix && pnpm i --prefer-offline @verdnatura/myt && npx myt run -t -d'
stage('Up') {
parallel {
stage('DB & Backend') {
steps {
sh 'cd salix && pnpm i --prefer-offline @verdnatura/myt && npx myt run -t -d'
sh 'docker build -f ./salix/back/Dockerfile -t back ./salix'
sh 'docker run -d --name salix_e2e --net=host -v $(pwd)/test/cypress/storage:/salix/storage back'
}
}
stage('Frontend') {
steps {
sh 'quasar build'
sh 'docker-compose -f docker-compose.e2e.yml up -d --build front'
}
}
}
}
stage('Up Backend') {
steps {
sh 'docker build -f ./salix/back/Dockerfile -t back ./salix'
sh 'docker run -d --name salix_e2e --net=host -v $(pwd)/test/cypress/storage:/salix/storage back'
}
}
stage('Up Frontend') {
steps {
sh 'quasar build'
sh 'docker-compose -f docker-compose.e2e.yml build front'
sh 'docker-compose -f docker-compose.e2e.yml up -d front'
}
}
stage('Run E2E') {
stage('Run') {
steps {
sh 'docker-compose -f docker-compose.e2e.yml build e2e'
sh 'docker-compose -f docker-compose.e2e.yml up e2e'