language: android sudo: false dist: trusty jdk: oraclejdk8 android: components: - tools - platform-tools - build-tools-29.0.3 - android-29 - extra-android-m2repository - extra-google-m2repository - extra-android-support env: global: # COMPONENT_GOOGLE_REPO - secure: "OQ/wkORxY2qv4CmAdMxyW4ihRt5GRyxKxQRZpsdjMbwIKf3DlY6vBoNIEQ46sRRLAKOzkQ3LirodbWRCBlDN9WFw4XRsLTveqqtslMGeLf04peazXMIa6rJ22BCDGEmnzRNx6r3JRb9wEK1plNv4u4G9DgQ7ShzbwdZ8A5grlg8=" addons: apt: packages: - curl - tar - gzip - openssh-client - git - ruby # before_cache: # - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock # - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ # cache: # directories: # - $HOME/.gradle/caches/ # - $HOME/.gradle/wrapper/ # - $HOME/.m2/ before_install: - ./travis/scripts/decode_private_configs.sh # https://github.com/travis-ci/travis-ci/issues/8651 - yes | sdkmanager "platforms;android-29" - install: - rvm default exec gem install fastlane - ./travis/scripts/fetch_private_files.sh - cat ./travis/configs/gradle.properties > ./gradle.properties before_script: # Validate if Google components fetched successfully - ./travis/scripts/test_private_files.sh script: - ./gradlew build -x lint after_failure: - ./travis/scripts/upload_error_logs.sh deploy: - provider: releases api_key: secure: "S1GSwQPN1ffS1wMmkNwKY7HlZbVysfn3LJa318gKbIB2RdnNoLT6xuZSWhe5mAI41yG45wkUpfK9fah6ueZFEd74+xy4q2aqaJDhhi/xqys/8VkODaNsHMkE2aWqnWqAcRBNRA1j8eFFZDjgge1t2x924U7jDEQaOOHHHQ58lxA=" file_glob: true file: '**/*-release.apk' skip_cleanup: true on: repo: TwidereProject/Twidere-Android tags: true # Publish to Google Play store # - provider: script # script: ./travis/scripts/google_play_deploy.sh ./twidere/src/google/.supplyrc # skip_cleanup: true # on: # repo: TwidereProject/Twidere-Android # tags: true # Upload common component library to Bintray - provider: script script: ./gradlew twidere.component.common:bintrayUpload skip_cleanup: true on: repo: TwidereProject/Twidere-Android tags: true