Try to add instrumentation tests

feature/top10
Aurelien Hubert 7 years ago
parent 05be64f396
commit 2382d3f005
  1. 23
      .gitlab-ci.yml

@ -38,7 +38,26 @@ assembleDebug:
paths: paths:
- app/build/outputs/ - app/build/outputs/
debugTests: instrumentation_tests:
stage: test stage: test
script: script:
- ./gradlew -Pci --console=plain :app:testDebug - emulator -avd testAVD -no-audio -no-window &
- ./ci/android-wait-for-emulator.sh
- adb devices
- adb shell settings put global window_animation_scale 0 &
- adb shell settings put global transition_animation_scale 0 &
- adb shell settings put global animator_duration_scale 0 &
- adb shell input keyevent 82 &
- ./gradlew connectedAndroidTest
- ./ci/stop-emulators.sh
artifacts:
name: "reports_${CI_PROJECT_NAME}_${CI_BUILD_REF_NAME}"
when: on_failure
expire_in: 4 days
paths:
- app/build/reports/androidTests/connected/
#debugTests:
# stage: test
# script:
# - ./gradlew -Pci --console=plain :app:testDebug

Loading…
Cancel
Save