forked from yeriomin/YalpStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 3.36 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
language: android
sudo: required
jdk: oraclejdk8
android:
components:
- tools
- tools
- platform-tools
- build-tools-27.0.1
- android-27
before_install:
- openssl aes-256-cbc -K $encrypted_a12ad885c361_key -iv $encrypted_a12ad885c361_iv -in yeriomin-keystore.jks.enc -out yeriomin-keystore.jks -d
install:
- sudo apt-get update && sudo apt-get --assume-yes install zip
env:
global:
- secure: FQeZo97VDMs0jneEeHJYJ5pKGr49s4O3QnCqv6D972KvuvZRXila4rIP/dodVXHlamOaQ9HJt5N/BK/Jk37Kwy795s/dNq49yetZ3Fay+YsI1Wb2WbKLMqc6iiOwwQJKcRTpBG44ycEWntLTpo8sQVoAsHvM/81D8+2MSGt6Eo4q5zVef/QQlCW1OOiUKq6gibzELqt+0NwoJmnc33snWFCr3mTVBmbq0qUx1VDVuXK4b8vaTp1XYVYH5FfZdDz2KP8eM+WhoZH8BoDvpnFFx8vzC4uDkFe1q/tAd6mO8aB6qHUbJMa3CJ8rPE0CHJczdmvFlaz+tm1Vz0KcxYk7HIcm5S4sM5iFwrRV+EE5Ztipj2n2yw9JEL3WtTe4mIuZ40Dl6iqy+MOmP/kZXOhhHbXPuhkG/sWNY3LfkyIl5cU0qet8oM48qskS8S7uWHQ/e/pgcpiPjqOL/FBLo1aHuqq7sXvO8F7yqTeE/hEwKCEADsK8R1vqoup9exCIW93Od1IyDKkIaFXXNsu1q7/WdtnA4AscfoqW+LvcpGdM/rMIy3QlfiECAO7c3Kok6GD/dctb9pmFI02vHJlJnWi9mNPJOQEWcsBIl2swmD2v8MmUL2ncdYcgB8N32pCztuKW8w04dzfdFDCWBB6oBB21WN/TJStGBA/6JpY0G8IxuiI=
- secure: kBDjXk/PyOpYLdngyrRuEMaGM85m41fowGgTi9LxNPxXb/mfoq42Dwyet+KRRD5/zFwJ8ZHCVpdyF/wieyS7EXk3o9KoK3M7znhB3YNQTKvUuYLxJxBiJqSxQOPIj8tMwLrY5xw2iNmJqpdKneFlJ6euyy/sSAj/EmKd3IpxQIyCfJJIlOO8CwbtAi3CBGk+RpxTckrREQWOulj5ZsLgAMJLtd3xvYAB2sp9R0jGfDPQBbKWoElKQPn04CR2s9otsmFIzChn+O86eiNepCrEl2C0kajzL8c9OWOui4xMWl3xaUucMvPCZjP2vsloVozMOj0ODWmNi3RHLp2vs8pL7YuXsaylisP/HWMEEkB7t6/0dFXvtCB42yYWex8cn9NSL9hVaZEeXSf+7b+LDzhQiSLRvLfey38Li/0eROByM4pVPFD59foJT+AqlE6jtDqBG3EvlkiW9kxbT5QkYKfiXJg2qq8zgmAXrTZT7mYhDPeMVq4W5QJofq+f+vDGr6n2aJEFz+tMgWiNPiE0Qjdzt0YAKCDSs8sMHLZ/Vay22DBXOLjdja03qCWwmzl4wDN2tL5Hj58a88lNJy94nVEkXavupZ6KVNaE0fhj8F/8z2U/tp+7/MOZ8oB7Ue+hfNrr11e5w+Ex8NsN7/Ir1S70pdp/taPwvgzVoWN+evLkip8=
before_deploy:
- export VERSION_CODE=`echo $TRAVIS_TAG | cut -d"." -f2`
- export APK_NAME=com.github.yeriomin.yalpstore_$VERSION_CODE.apk
- export OTA_NAME=yalp-store-ota-$VERSION_CODE.zip
- cd app/build/outputs/apk/release/
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $TRAVIS_BUILD_DIR/yeriomin-keystore.jks -storepass $storepass -keypass $keypass app-release-unsigned.apk AndroidKey
- jarsigner -verify app-release-unsigned.apk
- "$ANDROID_HOME/build-tools/27.0.1/zipalign -v 4 app-release-unsigned.apk $APK_NAME"
- "cp $APK_NAME $TRAVIS_BUILD_DIR/yalp-store-ota-zip/YalpStore.apk"
- "cp $APK_NAME $TRAVIS_BUILD_DIR"
- "cd $TRAVIS_BUILD_DIR/yalp-store-ota-zip"
- "zip -r $TRAVIS_BUILD_DIR/$OTA_NAME *"
- "cd $TRAVIS_BUILD_DIR"
deploy:
provider: releases
api_key:
secure: mJRRKJLGtbEc5s6VKq4bqbDRLn6mpjJ2e+9IjtMJUT+WuxtjEx2aCvHLVSmG0gJGwvbBhyVShkqIQYSu0NNx98O7n8ePy9cxRWmsuhbwAdMNLG3MuT+HFVR2VVbRh4aZvUgFKbbob1B4P1WC2+6+C1i/m42jz0XnNCVpwCfevEhYxeGtbSOWDSguDeAs/YYb3kpVSNvUKRdTEMYY1zETuhmt5AoPSBfkraffo/m6YPy7Kt0nZkFjjqA5yObF1JDROQBdj/U9qV651X8c9hQfaH/n0yIbPrPGnkAliCW0IBw42ifVsH2pQcPMUzJ/ZPJtKcQMOR6h7lO6iYpbCZUw3tgHXBNYSGtNzVNC3oOwg0Or0rSkcMz4wdRDktietxxTsvOhObrJubglY2q58d6ejZvf37ronCsDzkaB8TNNSSLCADP7hvFhAFfHQsC1WzVQa3orJAyjc981LNX4BGdc68vXIzfkEkJpOFmTWoQiHXbrB0gtpzJGKrclc5DQ9IQHmqU1/iMZf+3vasGNwsA9Ro6k98/HrhKTC+oh9ygI5oNjMhgZ3JcJO3r9xEhmsKNuI9jkeEs4WhN4CLyp6ZgnqgLbdGF0LjbTx2z4Emi3oyAVXB+VV3JshRljXsAvMNYFV3eqLKK9ZYIHnWvxP+cgzvZnAc4vV1Hx55VjhjcqqFc=
file:
- "$OTA_NAME"
- "$APK_NAME"
skip_cleanup: true
on:
all_branches: true
tags: true
repo: yeriomin/YalpStore