Skip to content
Snippets Groups Projects
Commit 429dad3d authored by Lennart Goedhart's avatar Lennart Goedhart
Browse files

First attempt at Travis auto-deploy

parent b7a7b7a2
No related branches found
No related tags found
No related merge requests found
language: android
jdk: oraclejdk8
sudo: false
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
env:
global:
- EMULATOR_API_LEVEL=14
......@@ -16,6 +19,7 @@ env:
- ANDROID_BUILD_TOOLS_VERSION=25.0.2
- ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=5
android:
components:
- tools
......@@ -31,22 +35,40 @@ android:
licenses:
- android-sdk-license-.+
- android-sdk-preview-license-.+
before_install:
- openssl aes-256-cbc -K $encrypted_c75769befc95_key -iv $encrypted_c75769befc95_iv
-in keystore.jks.enc -out keystore.jks -d
- openssl aes-256-cbc -K $encrypted_c75769befc95_key -iv $encrypted_c75769befc95_iv
-in fabric.properties.enc -out app/fabric.properties -d
before_script:
- echo no | android create avd --force -n test -t android-14 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- ./gradlew clean build connectedCheck -PdisablePreDex --stacktrace
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: "z1DxcbyRZKwIAV6/EeJgKwU/RYDoxnL/IoMtBlGCVe80C/tDfiv9D5DeDhLGQp/MKK8pIec35aj5EMrAacF6sgXzpooXuWNlfNdZJhLnpa8mCr9/Wpr9ll82Wc5EPIPEHf/k0e83gXzPiQuwTdBnHRlNfqylmWcwduA595e5GJZW88IzDJY0fS2p2R+4e6QJgX4Tp7KlLMMirXzTo1FjGUwuD8sM2Eh1imLnwSMO5oeXptUcd4deQqgRVTCgrNVcSRAlQsJNK0sAbkWC54SOLeMM/8CUoKbfpTMlEflpJ2V/n+EiomB2PFZYi7G7rx/Kcpw39thFMUbNSOInrmU3nHqTGACjbkjluufhw92S/05kA/qNDZeMH/8UHrArgpvXZIQbaJPhEbAk4lG5YfMoI1fs+k3kcmbtkOI4+ve/IOPHOuFGVAJZot66t6/kETdD59edS7uVjW+oPD9cSgLG0IAKPzF8jBpPw8olPaviGvjHvJVElg8EhCHMKqrcpix0LbxyC9gNc8Js6Y/JVj7rseApCTREIuSi8ug4mTOVWoLqUKIfMVCGGgKWTVCTbJTADFl+zFiQZj5Y1t+YEWKq2Qz6T36ISVsUBnYTmyu2zUTRBzZKHWS0qgxHZpKppi80pYyw299c99YVeXfb4yGmHLSoO6e80sPjTgaT2DQs6E0="
file:
- app/build/outputs/apk/app-release.apk
on:
repo: pazaan/600SeriesAndroidUploader
# tags: true # Remove when finished with testing
# Octokit options
prerelease: true
draft: true
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/0283e844d525908106b2
on_success: change
on_failure: always
on_start: false
before_install:
- openssl aes-256-cbc -K $encrypted_c75769befc95_key -iv $encrypted_c75769befc95_iv
-in keystore.jks.enc -out keystore.jks -d
- openssl aes-256-cbc -K $encrypted_c75769befc95_key -iv $encrypted_c75769befc95_iv
-in fabric.properties.enc -out app/fabric.properties -d
on_start: false
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment