feat(jenkinsE2E): refs #6695 try fix db
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
e4b709013e
commit
8985d04d62
|
@ -64,25 +64,26 @@ pipeline {
|
||||||
sh 'pnpm install --prefer-offline'
|
sh 'pnpm install --prefer-offline'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
// UNCOMMENT ME!
|
||||||
when {
|
// stage('Test') {
|
||||||
expression { !PROTECTED_BRANCH }
|
// when {
|
||||||
}
|
// expression { !PROTECTED_BRANCH }
|
||||||
environment {
|
// }
|
||||||
NODE_ENV = ""
|
// environment {
|
||||||
}
|
// NODE_ENV = ""
|
||||||
steps {
|
// }
|
||||||
sh 'pnpm run test:unit:ci'
|
// steps {
|
||||||
}
|
// sh 'pnpm run test:unit:ci'
|
||||||
post {
|
// }
|
||||||
always {
|
// post {
|
||||||
junit(
|
// always {
|
||||||
testResults: 'junitresults.xml',
|
// junit(
|
||||||
allowEmptyResults: true
|
// testResults: 'junitresults.xml',
|
||||||
)
|
// allowEmptyResults: true
|
||||||
}
|
// )
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
stage('E2E') {
|
stage('E2E') {
|
||||||
when {
|
when {
|
||||||
expression { !PROTECTED_BRANCH }
|
expression { !PROTECTED_BRANCH }
|
||||||
|
@ -114,11 +115,11 @@ pipeline {
|
||||||
// sh 'cd front'
|
// sh 'cd front'
|
||||||
// sh '# export VERSION=e2e-try'
|
// sh '# export VERSION=e2e-try'
|
||||||
sh 'docker build -f salix/back/Dockerfile -t back ./salix'
|
sh 'docker build -f salix/back/Dockerfile -t back ./salix'
|
||||||
|
sh 'docker-compose -f docker-compose.e2e.yml up -d --build front'
|
||||||
sh 'pnpm i @verdnatura/myt'
|
sh 'pnpm i @verdnatura/myt'
|
||||||
sh 'cd salix && npx myt run -t --ci -d -n front_default'
|
sh 'cd salix && npx myt run -t --ci -d -n front_default'
|
||||||
// sh 'docker-compose -f docker-compose.e2e.yml up --build db'
|
// sh 'docker-compose -f docker-compose.e2e.yml up --build db'
|
||||||
sh 'docker run --net=host -v ./test/cypress/storage:/salix/storage -d back'
|
sh 'docker run --net=host -v ./test/cypress/storage:/salix/storage -d back'
|
||||||
sh 'docker-compose -f docker-compose.e2e.yml up -d --build front'
|
|
||||||
sh 'docker-compose -f docker-compose.e2e.yml up e2e'
|
sh 'docker-compose -f docker-compose.e2e.yml up e2e'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue