Implemented a few basic unit tests

This commit is contained in:
2019-12-27 18:11:43 -05:00
parent c540322f82
commit 1a95713d1d
3 changed files with 106 additions and 0 deletions

23
Jenkinsfile vendored
View File

@ -55,6 +55,29 @@ pipeline {
}
}
}
stage('Test') {
agent {
docker {
image "rightbrainnetworks/auto-semver:${env.VERSION}"
}
}
steps
{
dir('semver')
{
sh 'python tests.py'
}
}
post{
// Update Git with status of test stage.
success {
updateGithubCommitStatus(GITHUB_URL, 'Passed test stage', 'SUCCESS', 'Test')
}
failure {
updateGithubCommitStatus(GITHUB_URL, 'Failed test stage', 'FAILURE', 'Test')
}
}
}
stage('Push')
{
steps {