Created
December 13, 2016 13:05
-
-
Save donnfelker/40ccd35ab678e7aa7bdc600329829b9e to your computer and use it in GitHub Desktop.
Updated circle.yml file for Caster.IO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Build configuration for Circle CI | |
# | |
# See this thread for speeding up and caching directories: | |
# https://discuss.circleci.com/t/installing-android-build-tools-23-0-2/924 | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/AndroidCI/app/build/outputs/apk/ | |
machine: | |
environment: | |
ANDROID_HOME: /usr/local/android-sdk-linux | |
ADB_INSTALL_TIMEOUT: 60 | |
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx3072M -XX:+HeapDumpOnOutOfMemoryError"' | |
java: | |
version: oraclejdk8 | |
dependencies: | |
pre: | |
- touch app/google-services.json | |
- echo $GOOGLE_SERVICES_JSON > app/google-services.json | |
- echo y | android update sdk --no-ui --all --filter "tools,android-24,build-tools-24.0.0,platform-tools,extra-android-m2repository,extra-android-support,extra-google-m2repository,extra-google-google_play_services" | |
cache_directories: | |
- /usr/local/android-sdk-linux/tools | |
- /usr/local/android-sdk-linux/build-tools/24.0.0 | |
# Comment the test stuff out (or remove it) if you don't need it. | |
test: | |
pre: | |
- emulator -avd circleci-android22 -no-audio -no-window: | |
background: true | |
parallel: true | |
- circle-android wait-for-boot | |
# unlock emulator | |
- sleep 30 | |
- adb shell input keyevent 82 | |
override: | |
# - ./gradlew clean assemble | |
# This will run the tests: | |
- ./gradlew assemble connectedDebugAndroidTest -PdisablePreDex --console=plain --info | |
post: | |
- cp -r app/build/outputs $CIRCLE_ARTIFACTS | |
- cp -r app/build/outputs/androidTest-results/connected/ $CIRCLE_TEST_REPORTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment