Skip to content
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

test: Add test emulators to Travis CI configuration #696

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@ android:
components:
- platform-tools
- tools
- extra-android-support
- extra-google-google_play_services
- extra-android-m2repository
- extra-google-m2repository
- build-tools-28.0.3
- android-28

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, you have to specify the API level and the emulator level, so please do not delete -android-<level>. You need to specify for both of these separately, so you will have to add these lines
-android-<your_API_level>
-android-<your_emulator_level>
I hope this helps :)

Copy link
Member Author

@gaurivn gaurivn May 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- android-28
- android-27
Okay will add back.

- android-27
- android-22
- sys-img-armeabi-v7a-android-22
before_install:
- yes | ${ANDROID_HOME}/tools/bin/sdkmanager "platforms;android-28"
- yes | ${ANDROID_HOME}/tools/bin/sdkmanager "platforms;android-27"
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move 13, 14 lines below 16 line as currently, this is trying to initiate the emulator before creating the virtual environment

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

- android-wait-for-emulator
- chmod +x gradlew
- chmod +x generate-apks.sh
- adb shell input keyevent 82 &
script:
- ./gradlew build
- ./gradlew clean build connectedAndroidTest --stacktrace
after_success:
- ./generate-apks.sh