diff --git a/Jenkinsfile b/Jenkinsfile index b91703c..58406a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,6 +66,7 @@ name: 'dummy-and', env: [ RELEASE: true, + TEST_SCOPE: 'none', JAVA_HOME: '/usr/java/latest', ANDROID_HOME: '/opt/android/sdk', GRADLE_USER_HOME: '/opt/android/gradle', @@ -113,8 +114,11 @@ onlyif = (! deployBranches.contains(lazyConfig['branch']) ) tasks = [ run: { - fastLane('android', 'test') - }, + if ( env.TEST_SCOPE && env.TEST_SCOPE != 'none' ) { + fastLane('android', 'test') + } else { + echo("Skipping tests") + } post: { junit(testResults: 'fastlane/report.xml,**/build/test-results/*/*.xml', allowEmptyResults: true) },