# Only buld the master branch
general:
  branches:
    only:
      - master
      
# Configure the virtual machine. Set a Java 8 environment.
machine:
  java:
    version: oraclejdk8

# Custom Android dependency config
dependencies:
  name: Install Android Dependencies
  pre:
    - echo $ANDROID_SDK_LICENSE > $HOME/$CIRCLE_PROJECT_REPONAME/android-sdk-license
    - echo $ANDROID_SDK_PREVIEW_LICENSE > $HOME/$CIRCLE_PROJECT_REPONAME/android-sdk-preview-license
    - android update sdk --no-ui --all --filter "tools,platform-tools,android-24"
    - android update sdk --no-ui --all --filter "build-tools-24.0.3"

# Run library release tests and publish test results.
test:
  override:
    - ./gradlew :library:clean :library:test :library:coveralls --stacktrace
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/release/
    - find . -type f -regex ".*/build/test-results/release/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/release \;

# Trigger a Bintray deployment when a tag of a certain pattern is pushed to the
# master branch in the repo owned echsylon (disqualifying any forked repos).
deployment:
  release:
    tag: /v[0-9]+(\.[0-9]+)*/
    owner: echsylon
    commands:
      - ./gradlew :library:bintrayUpload


# Only buld the master branch
general:
  branches:
    only:
      - master
      
# Configure the virtual machine. Set a Java 8 environment.
machine:
  java:
    version: oraclejdk8

# Custom Android dependency config
dependencies:
  pre:
    - echo $ANDROID_SDK_LICENSE > $HOME/$CIRCLE_PROJECT_REPONAME/android-sdk-license
    - echo $ANDROID_SDK_PREVIEW_LICENSE > $HOME/$CIRCLE_PROJECT_REPONAME/android-sdk-preview-license
    - android update sdk --no-ui --all --filter "tools,platform-tools,android-24"
    - android update sdk --no-ui --all --filter "build-tools-24.0.3"

# Run library release tests and publish test results.
test:
  override:
    - ./gradlew :library:clean :library:test :library:coveralls --stacktrace
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/release/
    - find . -type f -regex ".*/build/test-results/release/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/release \;

# Trigger a Bintray deployment when a tag of a certain pattern is pushed to the
# master branch in the repo owned echsylon (disqualifying any forked repos).
deployment:
  release:
    tag: /v[0-9]+(\.[0-9]+)*/
    owner: echsylon
    commands:
      - ./gradlew :library:bintrayUpload


Remove incorrect CI config key
Remove incorrect CI config key
