Skip to content

Commit

Permalink
chore(travis): deploy release apk
Browse files Browse the repository at this point in the history
  • Loading branch information
osfans committed Dec 21, 2018
1 parent 305ced7 commit 2dec57c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
@@ -1,28 +1,26 @@
language: android
script:
- git fetch origin --tags
- "./gradlew assembleDebug"
- "./gradlew assembleRelease"
git:
submodules: true
jdk:
- oraclejdk8
before_install:
- openssl aes-256-cbc -K $encrypted_26e1bb6b6b4a_key -iv $encrypted_26e1bb6b6b4a_iv
-in keystore.tar.enc -out keystore.tar -d
- tar xvf keystore.tar
- export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin
install:
- echo y | sdkmanager 'ndk-bundle'
- echo y | sdkmanager 'cmake;3.6.4111459'
- echo y | sdkmanager 'platform-tools'
- echo y | sdkmanager 'build-tools;28.0.3'
- echo y | sdkmanager 'platforms;android-28'
before_deploy:
- git config --local user.name "$GIT_NAME"
- git config --local user.email "$GIT_EMAIL"
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
github-token: "$GITHUB_TOKEN"
keep-history: true
local-dir: app/build/outputs/apk/
on:
Expand Down
Binary file added keystore.tar.enc
Binary file not shown.

0 comments on commit 2dec57c

Please sign in to comment.