dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter "tool"
    - (while true; do echo y; sleep 3; done) | android update sdk --no-ui --all --filter "android-23,android-21,build-tools-23.0.3,extra-android-support,extra-android-m2repository"
    - echo "sdk.dir=${ANDROID_HOME}" > /home/ubuntu/Kotpref/local.properties
    - echo "org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -Xms512m" > gradle.properties

test:
  override:
    - ./gradlew kotpref:test
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/test-results/*/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

deployment:
  bintray:
    branch: publish
    commands:
      - ./gradlew kotpref:install kotpref:bintrayUpload

dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter "tool"
    - (while true; do echo y; sleep 3; done) | android update sdk --no-ui --all --filter "android-23,android-21,build-tools-23.0.3,extra-android-support,extra-android-m2repository"
    - echo "sdk.dir=${ANDROID_HOME}" > /home/ubuntu/Kotpref/local.properties
    - echo "org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -Xms512m" > gradle.properties

test:
  override:
    - ./gradlew kotpref:testDebugUnitTest
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/test-results/*/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

deployment:
  bintray:
    branch: publish
    commands:
      - ./gradlew kotpref:install kotpref:bintrayUpload

Fix unit test build type
Fix unit test build type
