Skip to content

Instantly share code, notes, and snippets.

@ValeryPonomarenko
Created October 19, 2018 13:41
Show Gist options
  • Save ValeryPonomarenko/588bcc7168096bf66c45641f7c82e48e to your computer and use it in GitHub Desktop.
Save ValeryPonomarenko/588bcc7168096bf66c45641f7c82e48e to your computer and use it in GitHub Desktop.
Android CircleCI
default_platform(:android)
platform :android do
desc "Run the unit tests"
lane :unit_tests do
gradle(task: "test")
end
desc "Assemble a debug apk"
lane :assemble_debug do
gradle(task: "assembleDebug")
end
desc "Assemble an android test apk"
lane :assemble_android_test do
gradle(task: "assembleDebugAndroidTest")
end
desc "Run the instrumentation tests in the Firebase test lab"
lane :instrumentation_tests do
assemble_debug
assemble_android_test
sh("../ci/run_firebase_tests.sh")
end
desc "Deploy the app to the internal track"
lane :deploy_internal do
gradle(task: "bundleRelease")
supply(
track: 'internal',
aab: lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH].to_s
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment