forked from chu888chu888/android-autoupdater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (51 loc) · 1.91 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
language: android
jdk: oraclejdk7
notifications:
email:
on_success: never
on_failure: always
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-21.0.2
# The SDK version used to compile your project
- android-21
# Additional components
- extra-android-support
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-19
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-21
- sys-img-x86-android-21
before_install:
# Gradle 2.1
- wget http://services.gradle.org/distributions/gradle-2.1-bin.zip
- unzip gradle-2.1-bin.zip
- export GRADLE_HOME=$PWD/gradle-2.1
- export PATH=$GRADLE_HOME/bin:$PATH
- export KEYSTORE=$HOME/snowdream.keystore
- export KEYSTORE_PASSWORD=1234567
- export KEY_ALIAS=snowdream
- export KEY_PASSWORD=1234567
# environment info
# - gradle -v
before_script:
# write gradle.properties
- wget https://gist.githubusercontent.com/snowdream/8120098/raw/5d2f4abb15ef02c79cc3f747b0b0af59a84d3204/gradle.properties -O $HOME/.gradle/gradle.properties
- wget https://raw.githubusercontent.com/SnowdreamFramework/android-gradle-template/develop/snowdream.keystore -O $HOME/snowdream.keystore
- wget https://raw.githubusercontent.com/SnowdreamFramework/android-gradle-template/develop/secring.gpg -O $HOME/secring.gpg
# Create and start emulator
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
# - TERM=dumb gradle build connectedCheck --info
- TERM=dumb gradle build --info