Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvarobrey/calendula-ci
Dockerfile for android app testing
https://github.com/alvarobrey/calendula-ci
Last synced: 16 days ago
JSON representation
Dockerfile for android app testing
- Host: GitHub
- URL: https://github.com/alvarobrey/calendula-ci
- Owner: AlvaroBrey
- Created: 2017-09-19T12:16:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T11:57:15.000Z (about 7 years ago)
- Last Synced: 2024-04-24T03:15:24.615Z (7 months ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# calendula-ci
This is a simple Docker image for testing Android apps.
## Usage
The image has its entrypoint in the home directory of the only user, `build`.
In this directory you will find the following:* `android-sdk-linux/`: Folder with the SDK, tools and components according to the image tag.
* `android-wait-for-emulator`: Script for waiting until a emulator has finished booting up.There is also a preconfigured emulator named `test`. Details of its configuration can be looked up in the Dockerfile.
Relevant environment variables are already configured.
## Example usage
```bash
# Clone your project
build~$ git clone my-project && cd my-project/
# Build sources before starting the emulator for better performance
build~$ ./gradlew assembleDebug
# Start the emulator from its folder to prevend dependency path issues
build~$ ( cd ~/android-sdk-linux/emulator && ./emulator -avd test -no-window -no-audio & )
# Wait for the emulator to start
build~$ ./android-wait-for-emulator
# Unlock the screen
build~$ adb shell input keyevent 82
# Run connected tests
build~$ ./gradlew connectedDebugAndroidTest
```## Tags
Build tags follow the form `calendula-ci:compile_COMPILESDK-test_TESTSDK-tools_TOOLSVERSION`, where:* `COMPILESDK` is the Android API level used for building, e.g. `26`.
* `TESTSDK` is the Android API level of the included emulator, e.g. `25`.
* `TOOLSVERSION` is the version of the installed `build-tools`, e.g. `25.0.3`.