Skip to content

Quickstart

Get started with Marathon Cloud in minutes.

This guide walks you through installing the Marathon Cloud CLI, obtaining an API key, and running your first test suite. If you do not have test binaries to hand, step 3 has prebuilt samples so you can see a run end to end first.

  1. Terminal window
    brew tap malinskiy/tap && brew install malinskiy/tap/marathon-cloud

    Use Homebrew to install the Marathon Cloud CLI on macOS or Linux.

    For other platforms, refer to the CLI installation guide.

  2. In the Marathon Cloud console, open the user menu and choose Tokens, then create a token and export it:

    Terminal window
    export MARATHON_CLOUD_API_KEY=YOUR_TOKEN

    See API keys for storing it in CI.

  3. Terminal window
    ./gradlew :app:assembleDebug :app:assembleDebugAndroidTest

    Run the Gradle task to build the debug APK and the test APK.

  4. Terminal window
    marathon-cloud run android \
    --api-key YOUR_API_KEY \
    --application app/build/outputs/apk/debug/app-debug.apk \
    --test-application app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk

    The CLI uploads the binaries, waits for the run, and streams progress.

  5. When the run finishes the CLI prints a link to the report and exits 0 if every test passed or 1 if any failed. Open the link for per-test video, logs, and the Allure report. Add --output ./results to download JUnit XML and artifacts locally.