Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. version: 2
  2. jobs:
  3. build:
  4. working_directory: ~/code
  5. docker:
  6. - image: circleci/android:api-25-alpha
  7. environment:
  8. JVM_OPTS: -Xmx3200m
  9. steps:
  10. - checkout
  11. - restore_cache:
  12. key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
  13. - run:
  14. name: Download Dependencies
  15. command: ./gradlew androidDependencies
  16. - run:
  17. name: Setup emulator
  18. command: sdkmanager "system-images;android-21;default;armeabi-v7a" && echo "no" | avdmanager create avd -n test -k "system-images;android-21;default;armeabi-v7a"
  19. - run:
  20. name: Launch emulator
  21. command: export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd test -noaudio -no-boot-anim -no-window -accel on
  22. background: true
  23. - run:
  24. name: Wait Emulator
  25. command: circle-android wait-for-boot
  26. - save_cache:
  27. paths:
  28. - ~/.gradleqqwzs
  29. key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
  30. - run:
  31. name: Run Tests
  32. command: ./gradlew app:connectedVerifyDebugAndroidTest --stacktrace -PdisablePreDex --console=plain
  33. timeout: 120000
  34. - store_artifacts:
  35. path: app/build/reports
  36. destination: reports
  37. - store_test_results:
  38. path: app/build/test-results
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement