1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-31 17:04:59 +01:00

92 lines
2.3 KiB
YAML
Raw Normal View History

language: android
2017-03-04 12:26:14 +08:00
2017-09-04 17:09:15 +08:00
sudo: false
2017-09-04 19:24:23 +08:00
dist: trusty
2017-03-05 01:44:00 +08:00
2017-03-05 02:15:53 +08:00
jdk: oraclejdk8
android:
components:
2015-03-16 13:48:09 +08:00
- tools
2017-06-20 10:46:42 +08:00
- tools # To fix https://github.com/travis-ci/travis-ci/issues/6040
2017-06-20 10:57:11 +08:00
- platform-tools
2017-09-04 16:53:50 +08:00
- build-tools-26.0.1
2017-06-19 12:11:28 +08:00
- android-26
2016-12-01 11:18:16 +08:00
licenses:
2017-06-20 10:33:49 +08:00
- 'android-sdk-preview-license-.+'
2016-12-01 11:18:16 +08:00
- 'android-sdk-license-.+'
2017-06-20 10:33:49 +08:00
- 'google-gdk-license-.+'
2016-12-01 11:18:16 +08:00
2016-02-10 22:57:10 +08:00
env:
global:
2017-03-01 10:05:12 +08:00
# COMPONENT_GOOGLE_REPO
- secure: "OQ/wkORxY2qv4CmAdMxyW4ihRt5GRyxKxQRZpsdjMbwIKf3DlY6vBoNIEQ46sRRLAKOzkQ3LirodbWRCBlDN9WFw4XRsLTveqqtslMGeLf04peazXMIa6rJ22BCDGEmnzRNx6r3JRb9wEK1plNv4u4G9DgQ7ShzbwdZ8A5grlg8="
2016-02-10 22:57:10 +08:00
2015-08-13 20:59:03 +08:00
addons:
apt:
packages:
2017-03-05 20:20:09 +08:00
- curl
2016-02-08 22:30:26 +08:00
- tar
- gzip
2016-02-08 22:04:07 +08:00
- patch
2017-03-01 10:05:12 +08:00
- openssh-client
- git
2017-09-09 17:14:57 +08:00
- ruby
2017-03-04 12:26:14 +08: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 15:13:31 +08:00
2015-11-25 21:13:11 +08:00
before_install:
2017-06-20 11:06:01 +08:00
- yes y | $ANDROID_HOME/tools/bin/sdkmanager --update
2017-06-20 10:33:49 +08:00
- yes y | $ANDROID_HOME/tools/bin/sdkmanager --licenses
2017-04-26 01:15:41 +08:00
- ./travis/scripts/decode_private_configs.sh
2015-08-13 20:59:03 +08:00
2016-02-13 15:29:51 +08:00
install:
2017-09-09 17:14:57 +08:00
- rvm default exec gem install fastlane
2017-04-26 00:16:28 +08:00
- ./travis/scripts/fetch_private_files.sh
2017-09-05 19:08:23 +08:00
- cat ./travis/configs/gradle.properties > ./gradle.properties
2016-02-13 15:29:51 +08:00
before_script:
2016-02-08 22:04:07 +08:00
# Validate if patches work
2017-04-26 01:40:56 +08:00
- ./travis/scripts/patch_sources.sh
# Validate if Google components fetched successfully
2017-04-26 00:16:28 +08:00
- ./travis/scripts/test_private_files.sh
2016-02-08 22:04:07 +08:00
2017-03-04 12:26:14 +08:00
script:
2017-09-09 16:04:34 +08:00
- ./gradlew build
2016-02-08 22:30:26 +08:00
2017-03-04 21:40:24 +08:00
after_failure:
2017-04-26 00:16:28 +08:00
- ./travis/scripts/upload_error_logs.sh
2017-03-04 21:40:24 +08:00
2016-02-08 22:30:26 +08:00
deploy:
- provider: releases
prerelease: true
api_key:
secure: "WKtKwda3hegqO9QVujdonNoL2ESJUR80WHNq/13wDsbCABo/GNnuqHNYZmml3wAifEKKeCEYfNZRUuHQ8eHs54Lj5BlGRX5i+1LrGhhgnVFQgmrhIv4RJuVQ663kDEh+Jwo4vowJ2mxNDvLvOhfZwxjULPDiknqy6u5PyW3id5M="
file_glob: true
file: '**/*-release.apk'
2017-09-09 19:13:54 +08:00
skip_cleanup: true
on:
repo: TwidereProject/Twidere-Android
tags: true
# Publish to Google Play store
- provider: script
2017-09-09 16:04:34 +08:00
script: ./travis/scripts/google_play_deploy.sh ./twidere/src/google/.supplyrc
2017-09-09 19:13:54 +08:00
skip_cleanup: true
on:
repo: TwidereProject/Twidere-Android
2017-04-26 01:15:41 +08:00
tags: true
# Upload common component library to Bintray
- provider: script
script: ./gradlew twidere.component.common:bintrayUpload
2017-09-09 19:13:54 +08:00
skip_cleanup: true
on:
repo: TwidereProject/Twidere-Android
tags: true