-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add codecov and run android tests via travis #526
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,30 +3,50 @@ jdk: oraclejdk8 | |
env: | ||
global: | ||
- secure: fMBUkSsCBTw/U907w7Xm/yNzw4lq9yt7zFy0JyEZrA543LI7zQRIclIOtsDTUs0bwY+4KI08MNoYPLJ4TQhSJaH4wQ8b9C5TRsqXNfc0V718TcuYqSXqU6VPRVtX46/fCEWv/HAs0ksUKrHIlpWOwLPQpYDcKxwwlUndaakYKJ8= | ||
|
||
before_cache: | ||
- cd ${TRAVIS_BUILD_DIR}/gradle/caches/ | ||
- find . -name "*.lock" -exec rm -rfv {} \; | ||
- cd ${TRAVIS_BUILD_DIR} | ||
|
||
cache: | ||
directories: | ||
- "${TRAVIS_BUILD_DIR}/gradle/caches/" | ||
- "${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/" | ||
|
||
notifications: | ||
email: false | ||
|
||
android: | ||
components: | ||
- tools | ||
- build-tools-25.0.2 | ||
- platform-tools | ||
- tools | ||
- android-22 | ||
- sys-img-armeabi-v7a-android-22 | ||
|
||
install: | ||
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2" | ||
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2" | ||
- "./gradlew --version" | ||
- ./gradlew --version | ||
- sdkmanager --list || true | ||
|
||
# Emulator Management: Create, Start and Wait | ||
before_script: | ||
- android list device | ||
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a -d "5.4in FWVGA" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, this doesn't solve the problem itself, it just works around it :/ What happens, if the demo sitemap changes slightly and the widgets we use in this test are again outside of the view? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a check for "exists, but not visible"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems there isn't :/ Then this should be fine for now :D |
||
- emulator -avd test -no-audio -no-window & | ||
- android-wait-for-emulator | ||
- adb shell input keyevent 82 & | ||
- android list target | ||
|
||
script: | ||
- "./gradlew clean build" | ||
- "./gradlew test" | ||
- ./gradlew build connectedCheck test jacocoTestReport | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
before_deploy: | ||
- openssl aes-256-cbc -K $encrypted_903a93ed2309_key -iv $encrypted_903a93ed2309_iv | ||
-in keystore.enc -out keystore -d | ||
|
@@ -35,7 +55,8 @@ before_deploy: | |
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/keystore | ||
-storepass $storepass mobile-full-release-unsigned.apk sign | ||
- jarsigner -verify mobile-full-release-unsigned.apk | ||
- "${ANDROID_HOME}/build-tools/25.0.2/zipalign -v 4 mobile-full-release-unsigned.apk mobile-full-release.apk" | ||
- ${ANDROID_HOME}/build-tools/25.0.2/zipalign -v 4 mobile-full-release-unsigned.apk mobile-full-release.apk | ||
|
||
deploy: | ||
provider: releases | ||
prerelease: true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about adding some extras, which should probably enable voice recognition? However, this is not based on facts, just an idea :P I'm also not sure, which of these extras are already included :/ Also: We should first somehow make sure, that it's related to the play services :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we somehow check a build with these extras to see, if the voice recognition test is still skipped?