Skip to content

Repository files navigation

Android CI

Repository for a docker image used for android CI.

It contains:

  • build tools

  • platform tools

  • android-23 (+ system img)

  • android-24 (+ system img)

  • extra-android-m2repository

  • extra-google-m2repository

  • extra-google-google_play_services

For a smaller version see the minimal version (only android-23) which can be used via silentstorm/android-ci:minimal.

It can also be used in GitLab CI here is how a .gitlab-ci.yml could look like:

image: silentstorm/android-civariables:
ANDROID_COMPILE_SDK: "23"before_script:
- chmod +x ./gradlewstages:
- build
- testbuild:
stage: buildscript:
- ./gradlew assembleDebugartifacts:
name: "Namfy_{$CI_BUILD_ID}"expire_in: 1 weekpaths:
- "app/build/outputs/**/*.apk"except:
- tagstest:unit:
stage: testscript:
- ./gradlew testartifacts:
name: "tests-unit-${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}_${CI_BUILD_REF}"expire_in: 1 weekpaths:
- "**/build/reports/tests"test:instrumentation:23:
stage: testscript:
- echo no | android create avd -n test -t android-${ANDROID_COMPILE_SDK} --abi google_apis/armeabi-v7a
- emulator64-arm -avd test -no-window -no-audio &
- android-wait-for-emulator
- export TERM=${TERM:-dumb}
- assure_emulator_awake.sh "./gradlew cAT"artifacts:
name: "tests-instrumentation-${ANDROID_COMPILE_SDK}-${CI_BUILD_NAME}"expire_in: 1 weekpaths:
- "**/build/reports/androidTests"

About

Repository for a docker image used in android ci

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages