Skip to content

Commit

Permalink
Merge pull request #82 from auth0/add-circleci
Browse files Browse the repository at this point in the history
Add CircleCI
  • Loading branch information
hzalaz committed Mar 6, 2017
2 parents 8a970f8 + 8c30d88 commit be5baf7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Build configuration for Circle CI
#

machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
ANDROID_API_LEVEL: 25
ANDROID_BUILD_TOOLS_VERSION: 25.0.2
java:
version: oraclejdk8

dependencies:
cache_directories:
- ~/.gradle
- ~/.android
pre:
- if [ ! -d "/usr/local/android-sdk-linux/tools" ]; then echo y | android update sdk --no-ui --all --filter "tools"; fi
- if [ ! -d "/usr/local/android-sdk-linux/platforms/android-$ANDROID_API_LEVEL" ]; then echo y | android update sdk --no-ui --all --filter "android-$ANDROID_API_LEVEL"; fi
- if [ ! -d "/usr/local/android-sdk-linux/build-tools/$ANDROID_BUILD_TOOLS_VERSION" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-$ANDROID_BUILD_TOOLS_VERSION"; fi
- if [ ! -d "/usr/local/android-sdk-linux/add-ons/addon-google_apis-google-$ANDROID_API_LEVEL" ]; then echo y | android update sdk --no-ui --all --filter "addon-google_apis-google-$ANDROID_API_LEVEL"; fi
- if [ ! -d "/usr/local/android-sdk-linux/extras/google/m2repository" ]; then echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"; fi
- if [ ! -d "/usr/local/android-sdk-linux/extras/google/google_play_services" ]; then echo y | android update sdk --no-ui --all --filter "extra-google-google_play_services"; fi
- if [ ! -d "/usr/local/android-sdk-linux/extras/android/m2repository" ]; then echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"; fi

test:
override:
- ./gradlew clean test jacocoTestReport --continue --console=plain
post:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit be5baf7

Please sign in to comment.