2015-06-13 19:41:40 -04:00
|
|
|
language: android
|
2014-12-05 01:16:14 -05:00
|
|
|
env:
|
2015-04-05 16:43:26 -04:00
|
|
|
global:
|
2015-06-13 19:41:40 -04:00
|
|
|
- secure: FFXEK5dnQaJ2nSyaggVO66uNfpM6WYdS962qjY4ry9OumoK9OHg25MeQPrWmQurUaDDRfzdjMTs0UicWvJAnka846dDpYVbt0bpWbnNsq8vb05h1XhCsjjnEwcgPzbbyoAecmx7m1noAhkjFVnqmUhnjoYIsNd/pIRplO+r+0PY=
|
|
|
|
- secure: jrti7lGbCxscGDzOVgcVuIMSFnTUfJSbL5VtvhZXKllRoKeuM4tJ8HMubUKG0UXR0VGZl3XPcj3Ga7W6gxxSOavA9zmkT1kC9v/ya9QPQI1hCn1kq0GESxj3uFeYyiSa3T/0GcEO0bB660ttRSfpSwQ+MZknJUzIIdTt7K3LjXA=
|
|
|
|
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- platform-tools
|
|
|
|
- tools
|
2015-06-13 19:44:59 -04:00
|
|
|
- android-22
|
2015-06-13 23:48:43 -04:00
|
|
|
- sys-img-armeabi-v7a-android-22
|
2015-06-13 19:41:40 -04:00
|
|
|
|
2014-12-05 01:00:08 -05:00
|
|
|
before_install:
|
2015-06-13 23:32:09 -04:00
|
|
|
# -in is a switch to openssl
|
2015-06-13 19:41:40 -04:00
|
|
|
- openssl aes-256-cbc -K $encrypted_b017c1e684ac_key -iv $encrypted_b017c1e684ac_iv
|
|
|
|
-in app/src/main/play/play_api.p12.enc -out app/src/main/play/play_api.p12 -d
|
|
|
|
|
2015-06-13 20:02:10 -04:00
|
|
|
# We have to make sure the actual JSword is updated
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2015-06-13 23:32:09 -04:00
|
|
|
before_script:
|
2015-06-14 00:04:20 -04:00
|
|
|
- echo no | android create avd --force -n test -t android-22 --abi default/armeabi-v7a
|
2015-06-13 23:32:09 -04:00
|
|
|
- emulator -avd test -no-skin -no-audio -no-window &
|
|
|
|
- android-wait-for-emulator
|
|
|
|
- adb shell input keyevent 82 &
|
|
|
|
|
2014-11-17 16:49:10 -05:00
|
|
|
after_success:
|
2015-06-13 19:41:40 -04:00
|
|
|
- ./gradlew jacocoTestReport coveralls
|
|
|
|
- if [ $TRAVIS_TAG ];
|
|
|
|
then echo "Publishing to Play store...";
|
|
|
|
./gradlew publishRelease;
|
|
|
|
fi
|