-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from bassaer/ci
support travis ci
- Loading branch information
Showing
13 changed files
with
78 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
language: android | ||
|
||
env: | ||
global: | ||
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m" | ||
- ADB_INSTALL_TIMEOUT=10 | ||
|
||
android: | ||
components: | ||
- build-tools-28.0.3 | ||
- android-28 | ||
- android-22 | ||
- extra-google-m2repository | ||
- extra-android-m2repository | ||
- addon-google_apis-google-28 | ||
- sys-img-armeabi-v7a-android-22 | ||
|
||
licenses: | ||
- android-sdk-preview-license-.+ | ||
- android-sdk-license-.+ | ||
- google-gdk-license-.+ | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
before_install: | ||
- yes | sdkmanager "platforms;android-28" | ||
- mkdir "$ANDROID_HOME/licenses" || true | ||
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license" | ||
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license" | ||
|
||
|
||
before_script: | ||
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a | ||
- QEMU_AUDIO_DRV=none emulator -avd test -no-audio -no-window & | ||
- android-wait-for-emulator | ||
- adb shell input keyevent 82 & | ||
|
||
script: | ||
- ./gradlew clean lint test :example:connectedAndroidTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters