With this circle.yml file, the emulator is not launching…
checkout:
post:
- cp local.properties.ci local.properties
dependencies:
pre:
- git submodule update --init
# Pre-accept Android SDK components licenses
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- if [ ! -d "/usr/local/android-sdk-linux/platforms/android-25" ]; then echo y | android update sdk --no-ui --all --filter "android-25,build-tools-25.0.3, extra-android-m2repository, extra-android-support,extra-google-google_play_services, extra-google-m2repository"; fi
machine:
environment:
ADB_INSTALL_TIMEOUT: 60
JAVA_OPTS: "-Xms512m -Xmx1024m"
java:
version: oraclejdk8
test:
pre:
- emulator -avd circleci-android25 -no-audio -no-window:
background: true
parallel: true
- (./gradlew assemblePlaystoreDebug):
timeout: 1200
- (./gradlew assemblePlaystoreDebugAndroidTest):
timeout: 1200
# copy the build outputs to artifacts
- cp -r Fieldaware/build/outputs $CIRCLE_ARTIFACTS
override:
- circle-android wait-for-boot
- (echo "Running Espresso tests!")
- adb install Fieldaware/build/outputs/*release.apk
- adb install Fieldaware/build/outputs/*Test.apk
- adb shell am instrument -w -r -e debug false -e class com.fieldaware.app.test.espresso.EspressoUnitTestSuite com.fieldaware.app.test/android.support.test.runner.AndroidJUnitRunner
I don’t know if my testsuite will be run, because I’m stuck forever in :
- circle-android wait-for-boot