From ee0511253332d9124e41e8d92d16c298dcd6f321 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Thu, 5 Jan 2017 15:54:59 +0200 Subject: [PATCH] Automatic signed release APK --- .gitignore | 3 --- .gitlab-ci.yml | 17 +++++++++++++++-- ThmmyNoLife.jks | Bin 0 -> 2275 bytes app/build.gradle | 12 ++++++++++++ 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 ThmmyNoLife.jks diff --git a/.gitignore b/.gitignore index 252008e0..81cc9e9b 100644 --- a/.gitignore +++ b/.gitignore @@ -37,9 +37,6 @@ captures/ *.iml .idea -# Keystore files -*.jks - # External native build folder generated in Android Studio 2.2 and later .externalNativeBuild diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68c0735b..42e254a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,9 +20,22 @@ before_script: - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/ - chmod +x ./gradlew -build: +build_develop: script: - ./gradlew assembleDebug + only: + - develop artifacts: + name: "${CI_BUILD_NAME}" paths: - - app/build/outputs/ + - app/build/outputs/apk + +build_master: + script: + - ./gradlew assembleRelease + only: + - master + artifacts: + name: "${CI_BUILD_NAME}" + paths: + - app/build/outputs/apk diff --git a/ThmmyNoLife.jks b/ThmmyNoLife.jks new file mode 100644 index 0000000000000000000000000000000000000000..d0a7c7f77aa5416429912380efdd9643bf1d56ed GIT binary patch literal 2275 zcmc(g`8U*!7sqF}k1*DgeajM`Nu-C89@!p5co;GmV`QHRF+yW_FoYWWFsdh1O7?6+ zWoeu2ikK+-E)gL-dcNQ1oacQ1f$zEJ{%~LC-gEAG-+S)eTiRO!fk2Q02mkGez|c#9 zf#ieGc}?|5JqQE`160^9fJE?WAiyxNIz$KzhJ#>K*j%X`GYnhSZd32Xb6=<<0w`*t zNCFOCB%g6?*7RonRhVVsiX_$AWj*8_y_|H*PL(lTym=)@8C%u95)q)b?8SSzH@Y}l z*cN|wV_I=rAPcEAeGAhb>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/build.gradle @@ -13,10 +13,22 @@ android { versionName "0.6" archivesBaseName = "mTHMMY-v$versionName" } + + signingConfigs { + release { + storeFile rootProject.file('ThmmyNoLife.jks') + storePassword System.getenv("KEYSTORE_PASS") + keyAlias System.getenv("KEY_NAME") + keyPassword System.getenv("KEY_PASS") + } + } + buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + if (System.getenv("CI")) + signingConfig signingConfigs.release } debug { def date = new Date().format('ddMMyy_HHmm');