language: android
jdk:
  - oraclejdk8
android:
  components:
    - tools
    - platform-tools
    - build-tools-27.0.3
    - android-27
    - extra-android-m2repository

  licenses:
    - android-sdk-license-.+

before_script:
    - yes | sdkmanager "platforms;android-27"

script:
    - ./gradlew clean test
    - ./gradlew clean assemble

deploy:
    - provider: script
      script: scripts/deploy.sh
      on:
        # switch to master
        all_branches: true

language: android
jdk:
  - oraclejdk8
android:
  components:
    - tools
    - platform-tools
    - build-tools-27.0.3
    - android-27
    - extra-android-m2repository

  licenses:
    - android-sdk-license-.+

before_script:
    - yes | sdkmanager "platforms;android-27"

script:
    - ./gradlew clean build

deploy:
    - provider: script
      script: scripts/deploy.sh
      on:
        branch: master

Deploy on master branch only
Deploy on master branch only
