Skip to content

Commit

Permalink
添加持续集成Travis CI的配置信息
Browse files Browse the repository at this point in the history
  • Loading branch information
taowenyin committed Aug 2, 2017
1 parent f86cc3c commit 89503e3
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ captures/
.idea/libraries
.idea/statistic.xml

# Keystore files
*.jks

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

Expand Down
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: android
sudo: false
android:
components:
- tools
- platform-tools
- build-tools-26.0.1
- android-25
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-24
before_install:
- openssl aes-256-cbc -K $encrypted_c8b2b093f2df_key -iv $encrypted_c8b2b093f2df_iv
-in keys/LX.jks.enc -out keys/LX.jks -d
deploy:
provider: releases
api_key:
secure: szBvOkcAau6w4dJ4jyl+2fLJZFEurV0C0Gaoz53D/f0DDbBjczoyCUlDOB/0H6Jr51ymkhRrUGagUr0cR/X1TUx1PLO0lPCc2C7Nqy6GO+j4zIwtzVcHEvSnDbEAy39WBzPU/ilcfumUtKqwVCdM2AH9VRcve1dc/JRyPV1oPd0aDFU5kv8YxQDHr+OYMu2xR+ZoGXOQ9PKMm4NxSBCBkWLkElkmvmANPocmMCL6yLjK+tHHN2nWGlYFL9kM9FuGlm+GmCfUsESlyEpt7V71KWf6M8V17VZPD41ekVpu6nFXMX/RwXurNk7b0aIcmJkgq2CkFu+XgTmjRVE64fUHNmF7m4OCVitjcBnVYhUOflviYkIKzRm3qRj4fs+Ca1XT69m+OFVu8+sOUV04MmLl1NF1gY7m0UXmn04QirdYGnh4bX5iZOMbJCbVcfyQb2JSzOlAursVx98v2CfieJY3Q9hZvvyFJdAvX2/qNhmdBY4UU22AX8Hew6LLyr0TIF05Am0d+CPR4yUxMhHuCETZSKNzAZOpO3h+GoXBgqX7Vwx2E7AongFDo6X3KUuSZoktRGg4Mdl1en4G9cZ6XK9OzZeZXY3gRWAGZOJxUkcUHLrHTSw82kwGSE9ePPzGCLWSnifX/Lp/OR4mt/OcOMntchA6DkA6zFBL8Dq4WxQc3BE=
file: ''
on:
repo: taowenyin/RLXAPF
script:
- "./gradlew assembleRelease"
9 changes: 9 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,19 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
signingConfigs {
releaseConfig {
storeFile file("../keys/LX.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 false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseConfig
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@
systemProp.http.proxyHost=127.0.0.1
org.gradle.jvmargs=-Xmx1536m
systemProp.http.proxyPort=1080

# Travis CI环境配置
KEYSTORE_PASS=123456
ALIAS_NAME=LX
ALIAS_PASS=123456
Binary file added keys/LX.jks
Binary file not shown.
Binary file added keys/LX.jks.enc
Binary file not shown.

0 comments on commit 89503e3

Please sign in to comment.