Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Integrate with travis and fir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhongyi Tong committed Feb 12, 2016
1 parent dd8e17c commit 2ca4b53
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/build
/captures
/.idea/dictionaries
/monkeytong.jks
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ android:
- android-L
- extra
before_install:
#please use travis to config your sign
- openssl aes-256-cbc -K $encrypted_6b42a8524af0_key -iv $encrypted_6b42a8524af0_iv
-in monkeytong.jks.enc -out monkeytong.jks -d
- gem install fir-cli
before_script:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
Expand All @@ -21,8 +23,13 @@ script:
- ./gradlew assembleRelease
deploy:
provider: releases
#api_key:please use travis to config api key to upload release
api_key:
secure: d3LLAX3Ro4ICSbPIn88kKsbVMb/rTKPCXcDQveQlmYHoqRt2F4tDQw+fOdcukgfx/tPsyCNkKTUEFF1gd0LUGfI4S2cBW3RcYPFWhPMfWSMOsEIvcD/sT3462YiyFH7ZF7ZApdtHdxU9Xo862Ze2amPAle/AbAw1VMQsRHqSex8QMgdKxDhlxzmGit8BVZ1q7cew2/9F9PVPnMCSY42vRtbltKmwedt0p5e9AJ/dEL526rxsAEXIu5UPHQgt7+YW5KDDabKW9EjWBIA6GqBxRQwT3x9CdJJ6hX7NIcOrkabWTSsakvnoT8t7LXuKMyBzJdZnTg1v52ych4MOIszJOF4jn3x5v3xzM13w7LB05w4MyCuPtLfss9+gduU2KGxHtxdRcs5J2OCN2PgHOwlksisERy3xZNxqQNxlJ/S19k4K7oOGzvK+17FnT8QqBG1wago2BCK29WgorLAT63ERusDaVgzxBvsTMfF+vFcX4E5B6BvXmGgM7Hl1eCika2hKcCUjes2kc/0+bCFEiKRImxmuukEIvA84cPhYb+ppr9lqcgw95FXOJg7P/ELmjBiOAx1hI3lOfh1A3Jj7X5LNVsKVKc6LMGaNxVuIRNJcR4uCWgGVNC7P5PZy+4DTwCP0xVJghSj1yABgQBOZz2ChSeTZMEvKzY8kuDzCa/CtSdU=
file: app/build/outputs/apk/app-release.apk
skip_cleanup: true
on:
repo: geeeeeeeeek/WeChatLuckyMoney
branch: stable
tags: true
after_deploy:
- fir p app/build/outputs/apk/app-release.apk -T $FIR_TOKEN -c "`git cat-file tag $TRAVIS_TAG`"
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
/gradle.properties
10 changes: 10 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,20 @@ android {
}
}

signingConfigs {
releaseConfig {
storeFile file("../monkeytong.jks")
storePassword project.hasProperty("KEYSTORE_PASS") ? KEYSTORE_PASS : System.getenv("KEYSTORE_PASS")
keyAlias project.hasProperty("ALIAS_NAME") ? ALIAS_NAME : System.getenv("ALIAS_NAME")
keyPassword project.hasProperty("ALIAS_PASS") ? ALIAS_PASS : System.getenv("ALIAS_PASS")
}
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseConfig
}
}
}
Expand Down
18 changes: 0 additions & 18 deletions gradle.properties

This file was deleted.

Binary file added monkeytong.jks.enc
Binary file not shown.

0 comments on commit 2ca4b53

Please sign in to comment.