2016-06-07 13:42:24 +00:00
|
|
|
node {
|
|
|
|
stage 'Fetch source code'
|
2016-06-07 15:18:03 +00:00
|
|
|
git url: 'https://github.com/instea/react-native-popup-menu.git', branch: 'master'
|
2016-06-07 13:42:24 +00:00
|
|
|
stage 'Install dependencies'
|
|
|
|
sh 'npm install'
|
|
|
|
stage 'Run tests'
|
2016-06-07 15:21:40 +00:00
|
|
|
try {
|
|
|
|
sh 'npm test'
|
|
|
|
} finally {
|
|
|
|
step([$class: 'JUnitResultArchiver', testResults: 'target/*.xml'])
|
|
|
|
step([$class: 'ArtifactArchiver', artifacts: 'coverage/**/*', fingerprint: true])
|
2016-06-08 11:50:39 +00:00
|
|
|
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${env.DEV_MAIL}", sendToIndividuals: true])
|
2016-06-07 15:21:40 +00:00
|
|
|
}
|
2016-06-07 13:42:24 +00:00
|
|
|
}
|