Created
October 19, 2018 13:41
-
-
Save ValeryPonomarenko/588bcc7168096bf66c45641f7c82e48e to your computer and use it in GitHub Desktop.
Android CircleCI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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