PassAndroid/Jenkinsfile

24 lines
762 B
Text
Raw Normal View History

def flavorCombination='WithMapsWithAnalyticsForPlay'
stage 'assemble'
2016-03-08 04:04:33 +00:00
node {
checkout scm
sh "./gradlew clean assemble${flavorCombination}"
}
stage 'lint'
node {
sh "./gradlew lint${flavorCombination}Release"
publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'android/build/outputs/', reportFiles: 'lint-results-${flavorCombination}Release.html', reportName: 'Lint reports'])
2016-03-08 04:04:33 +00:00
}
stage 'test'
node {
sh "./gradlew test"
}
2016-03-08 04:04:33 +00:00
stage 'UITest'
node {
sh "./gradlew spoon${flavorCombination}"
publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'android/build/spoon-output/${flavorCombination}DebugAndroidTest/', reportFiles: 'index.html', reportName: 'Spoon reports'])
2016-03-08 04:04:33 +00:00
}