Twidere-App-Android-Twitter.../.travis.yml

87 lines
2.2 KiB
YAML
Raw Normal View History

language: android
2017-03-04 05:26:14 +01:00
2017-09-04 11:09:15 +02:00
sudo: false
2017-09-04 13:24:23 +02:00
dist: trusty
2017-03-04 18:44:00 +01:00
2017-03-04 19:15:53 +01:00
jdk: oraclejdk8
android:
components:
2015-03-16 06:48:09 +01:00
- tools
2020-02-23 05:48:52 +01:00
- platform-tools
2020-04-22 06:13:05 +02:00
- build-tools-29.0.3
2020-01-08 03:40:46 +01:00
- android-29
2020-02-23 05:48:52 +01:00
- extra-android-m2repository
- extra-google-m2repository
- extra-android-support
2016-02-10 15:57:10 +01:00
env:
global:
2017-03-01 03:05:12 +01:00
# COMPONENT_GOOGLE_REPO
- secure: "OQ/wkORxY2qv4CmAdMxyW4ihRt5GRyxKxQRZpsdjMbwIKf3DlY6vBoNIEQ46sRRLAKOzkQ3LirodbWRCBlDN9WFw4XRsLTveqqtslMGeLf04peazXMIa6rJ22BCDGEmnzRNx6r3JRb9wEK1plNv4u4G9DgQ7ShzbwdZ8A5grlg8="
2016-02-10 15:57:10 +01:00
2015-08-13 14:59:03 +02:00
addons:
apt:
packages:
2017-03-05 13:20:09 +01:00
- curl
2016-02-08 15:30:26 +01:00
- tar
- gzip
2017-03-01 03:05:12 +01:00
- openssh-client
- git
2017-09-09 11:14:57 +02:00
- ruby
2017-03-04 05:26:14 +01:00
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/
2017-02-04 08:13:31 +01:00
2015-11-25 14:13:11 +01:00
before_install:
2017-04-25 19:15:41 +02:00
- ./travis/scripts/decode_private_configs.sh
2019-06-26 07:56:58 +02:00
# https://github.com/travis-ci/travis-ci/issues/8651
2020-01-08 03:40:46 +01:00
- yes | sdkmanager "platforms;android-29"
2019-06-26 07:56:58 +02:00
-
2016-02-13 08:29:51 +01:00
install:
2017-09-09 11:14:57 +02:00
- rvm default exec gem install fastlane
2017-04-25 18:16:28 +02:00
- ./travis/scripts/fetch_private_files.sh
2017-09-05 13:08:23 +02:00
- cat ./travis/configs/gradle.properties > ./gradle.properties
2016-02-13 08:29:51 +01:00
before_script:
# Validate if Google components fetched successfully
2017-04-25 18:16:28 +02:00
- ./travis/scripts/test_private_files.sh
2016-02-08 15:04:07 +01:00
2017-03-04 05:26:14 +01:00
script:
2019-06-26 08:39:54 +02:00
- ./gradlew build -x lint
2016-02-08 15:30:26 +01:00
2017-03-04 14:40:24 +01:00
after_failure:
2017-04-25 18:16:28 +02:00
- ./travis/scripts/upload_error_logs.sh
2017-03-04 14:40:24 +01:00
2016-02-08 15:30:26 +01:00
deploy:
- provider: releases
prerelease: true
api_key:
2019-06-29 06:38:49 +02:00
secure: "S1GSwQPN1ffS1wMmkNwKY7HlZbVysfn3LJa318gKbIB2RdnNoLT6xuZSWhe5mAI41yG45wkUpfK9fah6ueZFEd74+xy4q2aqaJDhhi/xqys/8VkODaNsHMkE2aWqnWqAcRBNRA1j8eFFZDjgge1t2x924U7jDEQaOOHHHQ58lxA="
file_glob: true
file: '**/*-release.apk'
2017-09-09 13:13:54 +02:00
skip_cleanup: true
on:
repo: TwidereProject/Twidere-Android
tags: true
# Publish to Google Play store
2020-02-24 07:00:36 +01:00
# - 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
2017-09-09 13:13:54 +02:00
skip_cleanup: true
on:
repo: TwidereProject/Twidere-Android
2019-06-29 06:38:49 +02:00
tags: true