test: refs #6695 better stages
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
caf76e4071
commit
35f90f5ea1
|
@ -90,6 +90,7 @@ pipeline {
|
|||
expression { !PROTECTED_BRANCH }
|
||||
}
|
||||
environment {
|
||||
NODE_ENV = ""
|
||||
CREDENTIALS = credentials('docker-registry')
|
||||
}
|
||||
stages {
|
||||
|
@ -105,10 +106,14 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('Up') {
|
||||
parallel {
|
||||
stage('Database & Backend') {
|
||||
parallel{
|
||||
stage('Database') {
|
||||
steps {
|
||||
sh 'cd salix && pnpm i --prefer-offline @verdnatura/myt && npx myt run -t -d'
|
||||
}
|
||||
}
|
||||
stage('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'
|
||||
}
|
||||
|
@ -125,14 +130,14 @@ pipeline {
|
|||
sh 'docker-compose -f docker-compose.e2e.yml up e2e'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
cleanDockerE2E()
|
||||
junit(
|
||||
testResults: 'junitresults.xml',
|
||||
allowEmptyResults: true
|
||||
)
|
||||
post {
|
||||
always {
|
||||
cleanDockerE2E()
|
||||
junit(
|
||||
testResults: 'junitresults.xml',
|
||||
allowEmptyResults: true
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue