2014-09-24 22:14:04 +02:00
|
|
|
language: android
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
# Uncomment the lines below if you want to
|
|
|
|
# use the latest revision of Android SDK Tools
|
2015-03-16 06:48:09 +01:00
|
|
|
- platform-tools
|
|
|
|
- tools
|
2014-09-24 22:14:04 +02:00
|
|
|
|
|
|
|
# The BuildTools version used by your project
|
2016-11-27 07:23:07 +01:00
|
|
|
- build-tools-25.0.1
|
2014-09-24 22:14:04 +02:00
|
|
|
|
|
|
|
# The SDK version used to compile your project
|
2016-10-23 15:27:41 +02:00
|
|
|
- android-25
|
2014-09-24 22:14:04 +02:00
|
|
|
|
|
|
|
# Additional components
|
|
|
|
- extra-google-google_play_services
|
|
|
|
- extra-google-m2repository
|
|
|
|
- extra-android-m2repository
|
|
|
|
|
2016-12-01 04:18:16 +01:00
|
|
|
licenses:
|
|
|
|
- 'android-sdk-preview-license-.+'
|
|
|
|
- 'android-sdk-license-.+'
|
|
|
|
- 'google-gdk-license-.+'
|
|
|
|
|
2014-09-24 22:14:04 +02:00
|
|
|
# Specify at least one system image,
|
|
|
|
# if you need to run emulator(s) during your tests
|
|
|
|
# - sys-img-armeabi-v7a-android-19
|
|
|
|
# - sys-img-x86-android-17
|
2015-11-22 15:55:29 +01:00
|
|
|
sudo: false
|
2015-03-17 10:34:15 +01:00
|
|
|
|
2016-02-10 15:57:10 +01:00
|
|
|
jdk:
|
2016-06-21 06:49:22 +02:00
|
|
|
- oraclejdk8
|
2016-02-10 15:57:10 +01:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
MALLOC_ARENA_MAX=2
|
|
|
|
GRADLE_OPTS=-Xmx2048m -Dorg.gradle.parallel=false
|
|
|
|
|
2015-08-13 14:59:03 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2016-02-08 15:30:26 +01:00
|
|
|
- tar
|
|
|
|
- gzip
|
2016-02-08 15:04:07 +01:00
|
|
|
- patch
|
2015-09-21 12:15:42 +02:00
|
|
|
|
2015-11-25 14:13:11 +01:00
|
|
|
before_install:
|
2016-02-08 15:26:50 +01:00
|
|
|
- openssl aes-256-cbc -K $encrypted_9b8203f9524d_key -iv $encrypted_9b8203f9524d_iv -in travis/configs/twidere_private_config.tar.gz.enc -out travis/configs/twidere_private_config.tar.gz -d
|
2015-08-13 14:59:03 +02:00
|
|
|
|
2016-02-13 08:29:51 +01:00
|
|
|
install:
|
2016-02-08 15:26:50 +01:00
|
|
|
# Extracts build configs into source tree
|
|
|
|
- tar zxf travis/configs/twidere_private_config.tar.gz
|
2016-02-13 08:29:51 +01:00
|
|
|
|
|
|
|
before_script:
|
2016-02-08 15:04:07 +01:00
|
|
|
# Validate if patches work
|
|
|
|
- patch --dry-run -d twidere < twidere/patches/remove_closed_source_dependencies.patch
|
|
|
|
|
2015-11-26 15:00:03 +01:00
|
|
|
script: ./gradlew build --no-daemon --stacktrace
|
2016-02-08 15:30:26 +01:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: WKtKwda3hegqO9QVujdonNoL2ESJUR80WHNq/13wDsbCABo/GNnuqHNYZmml3wAifEKKeCEYfNZRUuHQ8eHs54Lj5BlGRX5i+1LrGhhgnVFQgmrhIv4RJuVQ663kDEh+Jwo4vowJ2mxNDvLvOhfZwxjULPDiknqy6u5PyW3id5M=
|
|
|
|
file_glob: true
|
|
|
|
file: '**/*-release.apk'
|
|
|
|
on:
|
|
|
|
repo: TwidereProject/Twidere-Android
|
|
|
|
tags: true
|