forked from PaperAirplane-Dev-Team/BlackLight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (39 loc) · 1.7 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
language: android
branches:
only:
- master
env:
- secure: "OXj6ivU3xBWNSo+94B0V9dyoMbYIo6dp701XrNecY/0lrQbN5FeP4Tk+KqVbSlk2kB1AIky3hW4gEhMij4F9fI9kYtLJBT5dtzXgvj3ae9Eukr3cMfBYZPjMMNXL1t9OGiIDF7h3u2+4MqAqiqb8FaMuxE4+ecgdJs31YIB6bdY="
before_install:
- wget http://services.gradle.org/distributions/gradle-2.2.1-all.zip
- unzip gradle-2.2.1-all.zip >> /dev/null
- export GRADLE_HOME=$PWD/gradle-2.2.1
- export PATH=$GRADLE_HOME/bin:$PATH
- wget https://dl-ssl.google.com/android/repository/build-tools_r21.0.2-linux.zip
- unzip build-tools_r21.0.2-linux.zip -d $ANDROID_HOME >> /dev/null
- mv $ANDROID_HOME/android-5.0 $ANDROID_HOME/build-tools/21.0.2
- wget https://dl-ssl.google.com/android/repository/android_m2repository_r15.zip
- unzip android_m2repository_r15.zip >> /dev/null
- rm -rf $ANDROID_HOME/extras/google/m2repository
- mv m2repository $ANDROID_HOME/extras/google/
script: gradle :app-snapshot:build
after_success:
- git config --global user.email "[email protected]"
- git config --global user.name "Peter Cai"
- export GIT_TAG=snapshot-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")_${TRAVIS_BUILD_NUMBER}_$(git log --format="%h" -n 1)
- git tag $GIT_TAG
- git push --quiet https://[email protected]/PaperAirplane-Dev-Team/BlackLight.git $GIT_TAG
android:
components:
- build-tools-21.1.2
- android-21
- extra-android-support
- extra-android-m2repository
deploy:
provider: releases
api_key:
secure: oeCApXVZYZKCYLrPJaergKhWVeXGUrqtDE5NkCGky4UbJ/NhXy2a4Or991BKWlW7fur7IYGhsH/k2T7QQkMa9bnHSb7AASZ2n9p2ExtFdZna97rs9bOsWikpTkaAAjXAuPKItI568mBFP99ISXEHfe+2l1wmQMDhHgjkDytgMNE=
file: app-snapshot/build/outputs/apk/app-snapshot-debug.apk
skip_cleanup: true
on:
repo: PaperAirplane-Dev-Team/BlackLight