Use Xvfb for testing

MYC-Refactor
Hammy 3 years ago
parent d9d06aee63
commit 30645b4819

24
Jenkinsfile vendored

@ -29,21 +29,21 @@ pipeline {
}
}
}
wrap([$class: 'Xvfb']) {
stage("Test") {
steps {
stage("Test") {
steps {
wrap([$class: 'Xvfb']) {
sh "mvn test"
}
post {
success {
echo "Generating Test Report..."
publishCoverage adapters: [jacocoAdapter('target/site/jacoco/jacoco.xml')]
}
post {
success {
echo "Generating Test Report..."
publishCoverage adapters: [jacocoAdapter('target/site/jacoco/jacoco.xml')]
echo "Sending Report to CodeCov..."
sh '''#!/bin/bash
bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN || echo "Codecov did not collect coverage reports"
'''
}
echo "Sending Report to CodeCov..."
sh '''#!/bin/bash
bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN || echo "Codecov did not collect coverage reports"
'''
}
}
}

Loading…
Cancel
Save