Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Running tests for Android app takes > 10 mint vs 1-2 mints locally, how to speed up?

Abdallah Abd El Fattah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 30, 2020

Hello,

I've been trying to use bitbucket pipelines to run unit tests in our Android app, but it seems to take way longer than it does locally!

Running locally takes 1 - 2 mints, but running the pipeline takes more than 10 mints!

I'm kinda new to this, so I'm not sure what might need to be cached for example.

 

Troubleshooting steps:

 

My pipe.yml file

image: mingc/android-build-box:latest

pipelines:
branches:
# Will be triggered only on merges/pushes into development.
development:
- step:
caches:
- maven
- gradle
- gradlewrapper
- androidavd
script:
- echo "Start testing"
- bash ./gradlew test -i
- echo "done testing!"

definitions:
caches:
gradlewrapper: ~/.gradle/wrapper
androidavd: $ANDROID_HOME/.android/avd

What should I do?

Any ideas, pointers, thoughts are welcome. :)

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events