https://github.com/philip-bui/android-ci
Android CI Scripts.
https://github.com/philip-bui/android-ci
android continous-integration instrumentation-tests unit-testing
Last synced: over 1 year ago
JSON representation
Android CI Scripts.
- Host: GitHub
- URL: https://github.com/philip-bui/android-ci
- Owner: philip-bui
- License: mit
- Created: 2019-02-09T02:47:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T22:03:44.000Z (about 5 years ago)
- Last Synced: 2025-01-07T16:18:16.521Z (over 1 year ago)
- Topics: android, continous-integration, instrumentation-tests, unit-testing
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android CI
[](https://hub.docker.com/r/philipbui/android-ci)
[](https://hub.docker.com/r/philipbui/android-ci/builds)
[](https://hub.docker.com/r/philipbui/android-ci/~/dockerfile)
## Setup
Use `philipbui/android-ci` as your Docker image.
### Build
```yaml
script:
- ./gradlew clean assembleRelease
artifacts:
- app/build/outputs
```
### Unit Tests
```yaml
script:
- ./gradlew test
artifacts:
- app/build/reports/tests
```
### Instrumentation Tests
```yaml
script:
- echo no|avdmanager -s create avd -n test -f -k "system-images;android-25;google_apis;arm64-v8a"
- emulator -avd test -no-audio -no-window & source <(curl -sSL https://raw.githubusercontent.com/philip-bui/android-ci/master/wait-for-emulator.sh)
- adb shell settings put global window_animation_scale 0 &
- adb shell settings put global transition_animation_scale 0 &
- adb shell settings put global animator_duration_scale 0
- adb shell input keyevent 82
- ./gradlew cAT
- source <(curl -sSL https://raw.githubusercontent.com/philip-bui/android-ci/master/stop-emulators.sh)
artifacts:
- app/build/reports/androidTest/connected/
```