Skip to content

Instantly share code, notes, and snippets.

@bertrandmartel
Created October 7, 2016 01:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bertrandmartel/e352be4278931e3341a00a2d03e3f714 to your computer and use it in GitHub Desktop.
Save bertrandmartel/e352be4278931e3341a00a2d03e3f714 to your computer and use it in GitHub Desktop.
Circle CI configuration for Android SDK 24 with NDK support
machine:
java:
version: oraclejdk8
environment:
ANDROID_NDK_HOME: ${ANDROID_NDK}
test:
override:
- ./gradlew clean build connectedCheck
post:
- mkdir $CIRCLE_ARTIFACTS/apk
- mv app/build/outputs/apk/*.apk $CIRCLE_ARTIFACTS/apk
dependencies:
pre:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- echo y | android update sdk -u -a -t tools
- echo y | android update sdk -u -a -t platform-tools
- echo y | android update sdk -u -a -t build-tools-23.0.3
- echo y | android update sdk -u -a -t android-24
- echo y | android update sdk -u -a -t extra-google-m2repository
- echo y | android update sdk -u -a -t extra-android-m2repository
- git submodule update --init --recursive
cache_directories:
- ~/.m2
- ~/.gradle
general:
branches:
ignore:
- gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment