2014-09-24 22:14:04 +02:00
|
|
|
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
|
|
|
|
|
2014-09-24 22:14:04 +02:00
|
|
|
android:
|
|
|
|
components:
|
2015-03-16 06:48:09 +01:00
|
|
|
- tools
|
2017-06-20 04:46:42 +02:00
|
|
|
- tools # To fix https://github.com/travis-ci/travis-ci/issues/6040
|
2017-06-20 04:57:11 +02:00
|
|
|
- platform-tools
|
2017-09-04 10:53:50 +02:00
|
|
|
- build-tools-26.0.1
|
2017-06-19 06:11:28 +02:00
|
|
|
- android-26
|
2014-09-24 22:14:04 +02:00
|
|
|
|
2016-12-01 04:18:16 +01:00
|
|
|
licenses:
|
2017-06-20 04:33:49 +02:00
|
|
|
- 'android-sdk-preview-license-.+'
|
2016-12-01 04:18:16 +01:00
|
|
|
- 'android-sdk-license-.+'
|
2017-06-20 04:33:49 +02:00
|
|
|
- 'google-gdk-license-.+'
|
2016-12-01 04:18:16 +01:00
|
|
|
|
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
|
2016-02-08 15:04:07 +01:00
|
|
|
- patch
|
2017-03-01 03:05:12 +01:00
|
|
|
- openssh-client
|
|
|
|
- git
|
2015-09-21 12:15:42 +02:00
|
|
|
|
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-06-20 05:06:01 +02:00
|
|
|
- yes y | $ANDROID_HOME/tools/bin/sdkmanager --update
|
2017-06-20 04:33:49 +02:00
|
|
|
- yes y | $ANDROID_HOME/tools/bin/sdkmanager --licenses
|
2017-04-25 19:15:41 +02:00
|
|
|
- ./travis/scripts/decode_private_configs.sh
|
2015-08-13 14:59:03 +02:00
|
|
|
|
2016-02-13 08:29:51 +01:00
|
|
|
install:
|
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:
|
2016-02-08 15:04:07 +01:00
|
|
|
# Validate if patches work
|
2017-04-25 19:40:56 +02:00
|
|
|
- ./travis/scripts/patch_sources.sh
|
2017-03-02 13:42:53 +01:00
|
|
|
# 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:
|
2017-09-06 16:36:22 +02:00
|
|
|
- ./gradlew clean build
|
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:
|
2017-03-15 10:18:03 +01:00
|
|
|
- provider: releases
|
|
|
|
prerelease: true
|
|
|
|
api_key:
|
|
|
|
secure: "WKtKwda3hegqO9QVujdonNoL2ESJUR80WHNq/13wDsbCABo/GNnuqHNYZmml3wAifEKKeCEYfNZRUuHQ8eHs54Lj5BlGRX5i+1LrGhhgnVFQgmrhIv4RJuVQ663kDEh+Jwo4vowJ2mxNDvLvOhfZwxjULPDiknqy6u5PyW3id5M="
|
|
|
|
file_glob: true
|
|
|
|
file: '**/*-release.apk'
|
|
|
|
on:
|
|
|
|
repo: TwidereProject/Twidere-Android
|
|
|
|
tags: true
|
2017-06-09 17:09:04 +02:00
|
|
|
# Publish to Google Play store
|
2017-03-15 10:18:03 +01:00
|
|
|
- provider: script
|
2017-09-06 16:36:22 +02:00
|
|
|
script:
|
|
|
|
- set -o allexport
|
|
|
|
- source ./twidere/src/google/.supplyrc
|
|
|
|
- fastlane supply run
|
|
|
|
- set +o allexport
|
2017-03-15 10:18:03 +01:00
|
|
|
on:
|
|
|
|
repo: TwidereProject/Twidere-Android
|
2017-04-25 19:15:41 +02:00
|
|
|
tags: true
|
2017-06-09 17:09:04 +02:00
|
|
|
# Upload common component library to Bintray
|
|
|
|
- provider: script
|
|
|
|
script: ./gradlew twidere.component.common:bintrayUpload
|
|
|
|
on:
|
|
|
|
repo: TwidereProject/Twidere-Android
|
|
|
|
tags: true
|