test: refs #6695 rollback build backend and frontend in 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
0a2b481667
commit
3ad58311e2
|
@ -105,27 +105,27 @@ pipeline {
|
|||
sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git'
|
||||
}
|
||||
}
|
||||
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 Database') {
|
||||
steps {
|
||||
sh 'cd salix && pnpm i --prefer-offline @verdnatura/myt && npx myt run -t -d'
|
||||
}
|
||||
}
|
||||
stage('Run') {
|
||||
stage('Up Backend') {
|
||||
steps {
|
||||
sh 'docker-compose -f docker-compose.e2e.yml build e2e'
|
||||
sh 'docker-compose -f docker-compose.e2e.yml up e2e'
|
||||
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 up -d --build front'
|
||||
}
|
||||
}
|
||||
stage('Run E2E') {
|
||||
steps {
|
||||
sh 'docker-compose docker-compose.e2e.yml build e2e'
|
||||
sh 'docker-compose docker-compose.e2e.yml up e2e'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue