general:
    artifacts:
        - /home/ubuntu/your-app-name/app/build/outputs/apk/

machine:
    environment:
        ANDROID_HOME: /usr/local/android-sdk-linux

dependencies:
    override:
        - chmod +x gradlew
        - echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-26.0.0,android-25,extra-google-m2repository,extra-android-m2repository,extra-android-support
        - ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies

test:
    override:
        - (./gradlew check):
            timeout: 360

        - cp -r app/build/outputs $CIRCLE_ARTIFACTS