-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
82 lines (82 loc) · 3.63 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
---
git:
depth: 1
env:
global:
- |
if test -z "$S3_BUILD_BUCKET"; then
S3_BUILD_BUCKET="device-farm-builds-976851222302"
fi
- |
if test -z "$S3_CONFIG_BUCKET"; then
S3_CONFIG_BUCKET="device-farm-configs-976851222302"
fi
- |
if test -z "$ANDROID_API_LEVEL"; then
ANDROID_API_LEVEL="26"
fi
- |
if test -z "$ANDROID_BUILD_TOOLS_VERSION"; then
ANDROID_BUILD_TOOLS_VERSION="26.0.2"
fi
- ANDROID_DEBUG_APK_NAME="travis-android-debug-${TRAVIS_BUILD_NUMBER}-${TRAVIS_BUILD_ID}"
- ANDROID_BUILD_DIR="${TRAVIS_BUILD_DIR}/platforms/android/build/outputs/apk/debug"
- ANDROID_BUILD_LATEST_DIR="${ANDROID_BUILD_DIR}/latest"
# AWS_ACCESS_KEY_ID
- secure: "AJOyW5ihq8KkfgLHbWaJs09UmDr81cSDrwVA7KsKnn6IpSCPl9UiJva4EuMXV8A/csEw/ExMc8+EAoOkT90VUiw1DZVGePTWpDTHGF1tnhhI6SMRpOsIXuznGAvwFNC76m9aqvTxeN8EKoNI+d8XlLuRKGyUKs1s3aoRNJOcZFvhzbIuSGyDdfYun1BQDdKocsnu6j7P58bpsH0lpFjuFPVXsN46lcbocRShbRawZ2S72Cev74Gvo3Fln+WVJAaJN0A62nFyQZdKyqPIvdsYHsCQA3tEB71O7S9nWzXRh/r7reLRb0fqJLGp3FH12XknHzdFIr4uuDzAdIdN0Xxye28EL/i1loWwxPu5pMH2mnOY6SHNmq4LEzH/nxKWdAbEJZRwe/p0mIoznnUsKDkZbhXgrWClYNEr9KOe/BufdP+fdcqHkbF2R2P6frpNIyQFBjDTQ3eQt7E/ljOnkygQHaCL6pqRW7HccNqTDybMkJW8hW8eO3Ja4TICpkWE+/RYhGBGAmhE2D8bM1U2OgvB/vfpQgHAh4btKUIOC674NgTs4Q1xy73FAKeXvy4/Td2B69BxJT7Et7qynIXQeVUXFv7MKEFZgqdfXimtPhO5MECDCxzVxaeZgVUhTtCqpFmEQVEreT8h5HzQF8Ld2FZMM1uxBZcK7XtW97AsgT9Ez3k="
# AWS_SECRET_ACCESS_KEY
- secure: "oecMzRKK+7wooSfhLbAIjaeg5RPl9XCbD4ECKybBa0mYzmL8OZ5nuFuNGJn3jmnr2Bs2F48ZiKMgOhD6jpcSQPBhZY0/DvJNIIcb9Qm/HxLDKwYkaa5kzUyXcrJ+3px/f4QcoWKDHwH6IeMGqqvaSy2FxPlvU9Mb/NJ6+0Ij6eOm2CP7tHMdXlQqqCnZXuykGeMEEez1qD2W1rxBwqbgCs0f3AsWWog5rCrucmKbSkKi5RQ9X/6xXK+tVOCXiWuI9VYNGVf+kHLHpz5g9FBXup7c5RmO9Wa9Nv++arq4lsp1mKFdtXZLG0+S6ts8hdHC6grJOHBO3jFWRy/YBKZneDGX3DBKm0ChuLIMYczCU9U66EUyxA0CWpZsoEosDGW/Ox7M3g/+4JP3iCMm0G2fbZ5pb6Yye8WLAcL0jgcjda2iC08P9o77Bf7dqPLLWGimfP5qd1bWGKJIaxeusKFx3MqaPrusIb1yLPKFfONYCQvdD53HVZTZ1U7s3671zZVh7/keL5AmWcUi2GeAKikXyxlZHEK5xd23/SsdLpneeZMVTrwL2FULReYeFdjXw0HHitHepx/N0/nLPANfqcW2wXjFznTadC8TJUqcKvfx3EnKmKBvlzGVPuhlALP39joZuhLlgVX+M/D1brGm1rzhpLE42IUuKEpDQqKbagt+KPI="
language: android
jdk: oraclejdk8
os: linux
android:
components:
# Installs sdkmanager, apkanalizer, avdmanager, mksdcard, proguard
- tools
# The BuildTools version used by your project
# Installs apksigner, zipalign
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
# The SDK version used to compile your project
- android-$ANDROID_API_LEVEL
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
addons:
apt:
sources:
-
sourceline: "deb https://dl.yarnpkg.com/debian/ stable main"
key_url: "https://dl.yarnpkg.com/debian/pubkey.gpg"
update: true
packages:
- gradle
- yarn
- jq
install:
- ./ci/install/dependencies.sh
before_script:
- ./ci/script/before/run.sh
script:
- ./ci/script/aws_device_farm_run.sh "${TRAVIS_COMMIT_MESSAGE}" "${S3_CONFIG_BUCKET}" "${ANDROID_DEBUG_APK_NAME}" "${ANDROID_BUILD_DIR}"
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/.android/build-cache
- $HOME/.cache/yarn
- $HOME/.cache/pip
# This step uploads the .apk as well as the test artifacts.
deploy:
provider: s3
access_key_id: "${AWS_ACCESS_KEY_ID}"
secret_access_key: "${AWS_SECRET_ACCESS_KEY}"
skip_cleanup: true
bucket: "${S3_BUILD_BUCKET}"
local_dir: "${ANDROID_BUILD_LATEST_DIR}"
region: us-east-1
on:
all_branches: true