-
-
Notifications
You must be signed in to change notification settings - Fork 377
/
.travis.yml
85 lines (74 loc) · 2.16 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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