-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
176 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
hw.cpu.arch = x86_64 | ||
hw.cpu.ncore = 2 | ||
hw.ramSize = 1536 | ||
hw.screen = multi-touch | ||
hw.mainKeys = false | ||
hw.trackBall = false | ||
hw.keyboard = true | ||
hw.keyboard.lid = false | ||
hw.keyboard.charmap = qwerty2 | ||
hw.dPad = false | ||
hw.rotaryInput = false | ||
hw.gsmModem = true | ||
hw.gps = true | ||
hw.battery = true | ||
hw.accelerometer = true | ||
hw.audioInput = true | ||
hw.audioOutput = true | ||
hw.sdCard = true | ||
hw.sdCard.path = ~/Nexus_6P_API_25.avd/sdcard.img | ||
disk.cachePartition = true | ||
disk.cachePartition.path = ~/Nexus_6P_API_25.avd/cache.img | ||
disk.cachePartition.size = 66m | ||
hw.lcd.width = 1440 | ||
hw.lcd.height = 2560 | ||
hw.lcd.depth = 16 | ||
hw.lcd.density = 560 | ||
hw.lcd.backlight = true | ||
hw.gpu.enabled = true | ||
hw.gpu.mode = host | ||
hw.gpu.blacklisted = no | ||
hw.initialOrientation = Portrait | ||
hw.camera.back = emulated | ||
hw.camera.front = emulated | ||
vm.heapSize = 384 | ||
hw.sensors.light = true | ||
hw.sensors.pressure = true | ||
hw.sensors.humidity = true | ||
hw.sensors.proximity = true | ||
hw.sensors.magnetic_field = true | ||
hw.sensors.orientation = true | ||
hw.sensors.temperature = true | ||
hw.useext4 = true | ||
kernel.path = ${ANDROID_HOME}/system-images/android-25/google_apis/x86_64//kernel-ranchu | ||
kernel.newDeviceNaming = yes | ||
kernel.supportsYaffs2 = no | ||
disk.ramdisk.path = ${ANDROID_HOME}/system-images/android-25/google_apis/x86_64//ramdisk.img | ||
disk.systemPartition.initPath =${ANDROID_HOME}/system-images/android-25/google_apis/x86_64//system.img | ||
disk.systemPartition.size = 2g | ||
disk.dataPartition.path = ~/Nexus_6P_API_25.avd/userdata-qemu.img | ||
disk.dataPartition.size = 1200m | ||
PlayStore.enabled = false | ||
avd.name = Nexus_6P_API_25 |
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,23 @@ | ||
#!/bin/bash | ||
|
||
echo $ANDROID_HOME | ||
ls -la ${ANDROID_HOME}/tools/bin/ | ||
|
||
|
||
SWARMER_VERSION=0.2.0 | ||
SWARMER_JAR=/tmp/swarmer.jar | ||
|
||
curl --fail --location https://jcenter.bintray.com/com/gojuno/swarmer/swarmer/${SWARMER_VERSION}/swarmer-${SWARMER_VERSION}.jar --output ${SWARMER_JAR} | ||
$ANDROID_HOME/tools/bin/sdkmanager --update | ||
$ANDROID_HOME/tools/bin/sdkmanager "system-images;android-25;google_apis;x86_64" | ||
|
||
|
||
java -jar ${SWARMER_JAR} start \ | ||
--emulator-name test_emulator_1 \ | ||
--package "system-images;android-25;google_apis;x86_64" \ | ||
--android-abi google_apis/x86_64 \ | ||
--path-to-config-ini .buildscript/swarmer/emulator1-config.ini \ | ||
--emulator-start-options -prop persist.sys.language=en -prop persist.sys.country=US \ | ||
--redirect-logcat-to test_emulator_1_logcat.txt \ | ||
--emulator-start-options -verbose --no-window \ | ||
--emulator-start-timeout-seconds 180 |
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,5 @@ | ||
#!/bin/bash | ||
|
||
SWARMER_JAR = "/tmp/swarmer.jar" | ||
|
||
java -jar ${SWARMER_JAR} stop |
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 |
---|---|---|
|
@@ -57,4 +57,4 @@ local.properties | |
proguard/ | ||
|
||
#Log Files | ||
*.log | ||
*.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
machine: | ||
java: | ||
version: oraclejdk8 | ||
environment: | ||
ANDROID_HOME: /usr/local/android-sdk-linux | ||
ANDROID_BUILD_TOOLS: 26.0.0 | ||
QEMU_AUDIO_DRV: none | ||
|
||
dependencies: | ||
pre: | ||
# Remove any leftover lock from previous builds | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
|
||
# Make sure we have the sdkmanager available, and update the Android SDK tools if not | ||
- if [ ! -e $ANDROID_HOME/tools/bin/sdkmanager ]; then echo y | android update sdk --no-ui --all --filter tools; fi | ||
|
||
# Install all the required SDK components | ||
- echo y | $ANDROID_HOME/tools/bin/sdkmanager --verbose "platform-tools" "build-tools;"$ANDROID_BUILD_TOOLS "extras;google;m2repository" | ||
|
||
override: | ||
# Force Gradle to pre-download dependencies for the app module (the default would only be for the root, which is useless) | ||
- if [ -f ./gradlew ]; then ./gradlew mvi:dependencies --console=plain;else gradle mvi:dependencies --console=plain;fi | ||
|
||
cache_directories: | ||
# Android SDK | ||
- /usr/local/android-sdk-linux/tools | ||
- /usr/local/android-sdk-linux/platform-tools | ||
- /usr/local/android-sdk-linux/build-tools | ||
- /usr/local/android-sdk-linux/licenses | ||
- /usr/local/android-sdk-linux/extras/google/m2repository | ||
|
||
# Gradle caches | ||
- /home/ubuntu/.gradle/caches/ | ||
- /home/ubuntu/.gradle/wrapper/ | ||
|
||
test: | ||
override: | ||
# start the emulator | ||
- emulator -avd circleci-android24: | ||
background: true | ||
parallel: false | ||
# wait for it to have booted | ||
- circle-android wait-for-boot | ||
# run tests against the emulator. | ||
- ./gradlew test connectedAndroidTest --console=plain | ||
|
||
post: | ||
# Collect the JUnit reports | ||
- mkdir -p $CIRCLE_TEST_REPORTS/reports/junit | ||
- find mvi/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find mvi/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find mvi-common/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find mvi-common/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find mvi-integration-test/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find mvi-integration-test/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find mvp-common/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find mvp-common/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find mvp-lce/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find mvp-lce/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find mvp-nullobject-presenter/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find mvp-nullobject-presenter/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find presentermanager/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find presentermanager/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find utils-fragment/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find utils-fragment/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find utils-fragment-integration-test/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find utils-fragment-integration-test/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find viewstate/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find viewstate/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
|
||
- find mvp/build/ -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; | ||
- find mvp/build/ -name "*.html" -exec cp {} $CIRCLE_TEST_REPORTS/reports/junit/ \; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
include ':mvp-common', ':mvp', ':viewstate', ':sample', ':mvi', ':sample-mail', ':mvp-lce', | ||
include ':mvp-common', | ||
':mvp', | ||
':viewstate', | ||
':sample', | ||
':mvi', | ||
// ':sample-mail', | ||
':mvp-lce', | ||
':mvp-nullobject-presenter', | ||
':mvi-common', | ||
':utils-fragment-integration-test', | ||
':mvi-integration-test', ':sample-mvi', ':presentermanager', ':utils-fragment' | ||
':mvi-integration-test', | ||
':sample-mvi', | ||
':presentermanager', | ||
':utils-fragment' |