Skip to content

philip-bui/android-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android CI

Docker Pulls Docker Build Status Docker Automated build

Setup

Use philipbui/android-ci as your Docker image.

Build

script:
  - ./gradlew clean assembleRelease

artifacts:
  - app/build/outputs

Unit Tests

script:
  - ./gradlew test
  
artifacts:
  - app/build/reports/tests

Instrumentation Tests

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/