Android pipeline

Alexandru Calinoiu May 9, 2017

Hi,

How can I configure the pipline to run my android builds, currently I have a vary basic configuration

# This is a sample build configuration for Java – Gradle.
# Check our guides at https://confluence.atlassian.com/x/zd-5Mw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: java:8

pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          # You must commit the Gradle wrapper to your repository
          # https://docs.gradle.org/current/userguide/gradle_wrapper.html
          - bash ./gradlew build

That results in the following error:

> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

1 answer

0 votes
Alexandru Calinoiu May 9, 2017

I've figured the error out with this blog post https://medium.com/@_tiwiz/building-android-with-bitbucket-pipelines-83cd62dbde33

Wondering now how to start an emulator to run the connected tests

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events