Docker-Android can be used for building Android project and executing its unit test. This following steps will illustrate how to build Android project:
-
Clone this sample test project.
git clone [email protected]:android/testing-samples.git
-
Build the project
docker run -it --rm -v $PWD/testing-samples/ui/espresso/BasicSample:/home/androidusr/tmp -w /home/androidusr/tmp --entrypoint "/bin/bash" budtmo/docker-android:emulator_11.0_v2.0 -c "./gradlew build"