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

# Custom Android dependency configuration
dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-25
    - echo y | android update sdk --no-ui --all --filter build-tools-25.0.2
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository

# Run library release tests and archive + publish test results.
test:
  override:
    - ./gradlew :library:clean :library:testRelease :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 by echsylon (disqualifying any forked repos).
deployment:
  release:
    tag: /v[0-9]+\.[0-9]+\.[0-9]+/
    owner: echsylon
    commands:
      - ./gradlew :library:clean :library:assembleRelease :library:bintrayUpload


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

# Custom Android dependency configuration
dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-26
    - echo y | android update sdk --no-ui --all --filter build-tools-25.0.3
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository

# Run library release tests and archive + publish test results.
test:
  override:
    - ./gradlew :library:clean :library:testRelease :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 by echsylon (disqualifying any forked repos).
deployment:
  release:
    tag: /v[0-9]+\.[0-9]+\.[0-9]+/
    owner: echsylon
    commands:
      - ./gradlew :library:clean :library:assembleRelease :library:bintrayUpload


Update Android dependencies in CI config
Update Android dependencies in CI config
