diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee2983e0..242397a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,7 +38,26 @@ assembleDebug: paths: - app/build/outputs/ -debugTests: +instrumentation_tests: stage: test script: - - ./gradlew -Pci --console=plain :app:testDebug \ No newline at end of file + - 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