-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.travis.yml
88 lines (80 loc) · 6.11 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
86
87
88
language: android
jdk: oraclejdk8
android:
components:
- tools
- tools # as per https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943
- platform-tools
- build-tools-26.0.2
- android-19
- android-26
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
- sys-img-armeabi-v7a-android-19
licenses:
- android-sdk-license-.+
- google-gdk-license-.+
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_script:
- echo no | android create avd --force -n test -t android-19 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- ./gradlew :skygear:build :skygear:check :skygear:connectedAndroidTest --stacktrace
before_deploy:
- scripts/build-apk.sh
- sudo pip install awscli
- aws configure set preview.cloudfront true
deploy:
- provider: script
script: scripts/deploy.sh
skip_cleanup: true
on:
repo: SkygearIO/skygear-SDK-Android
all_branches: true
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: "docs.skygear.io"
skip_cleanup: true
acl: public_read
local_dir: "build/apk"
upload-dir: "android/build"
cache_control: "max-age=604800"
on:
repo: SkygearIO/skygear-SDK-Android
tags: true
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: "docs.skygear.io"
skip_cleanup: true
acl: public_read
local_dir: "skygear/build/reports/androidTests/connected"
upload-dir: "android/tests"
cache_control: "max-age=604800"
on:
repo: SkygearIO/skygear-SDK-Android
tags: true
env:
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