diff --git a/Jenkinsfile b/Jenkinsfile index be76cd84..1cfe6e9b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -184,6 +184,27 @@ pipeline { } } + stage ('Unit Tests') { + steps { + sh """ + #. venv/bin/activate + export PATH=${VIRTUAL_ENV}/bin:${PATH} + make unittest || true + """ + } + + post { + always { + junit keepLongStdio: true, testResults: 'nosetests.xml' + publishHTML target: [ + reportDir: 'PyBitmessage', + reportFiles: 'index.html', + reportName: 'Coverage Report - Unit Test' + ] + } + } + } + // stage('Unit tests') { // steps { // sh ''' source activate ${BUILD_TAG} diff --git a/index.html b/index.html new file mode 100644 index 00000000..64233a9e --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +index.html \ No newline at end of file diff --git a/nosetests.xml b/nosetests.xml new file mode 100644 index 00000000..e69de29b