Created
August 12, 2020 09:19
-
-
Save jarvisluong/9651fad2bd60714e35aa3f8a30279997 to your computer and use it in GitHub Desktop.
Gitlab ci job with gmsaas detox
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
e2e_run: | |
stage: e2e | |
services: | |
- node:lts-alpine | |
image: testimio/gmsaas | |
before_script: | |
- npm install -g detox-cli | |
script: | |
- gmsaas auth login $GENYMOTION_USERNAME $GENYMOTION_PASSWD | |
# The recipe id 80a67ae9-430c-4824-a386-befbb19518b9 is Google Nexus 6 | |
- INSTANCE_ID=$(gmsaas instances start 80a67ae9-430c-4824-a386-befbb19518b9 $CI_COMMIT_SHA) | |
- DEVICE_NAME_ADB=$(gmsaas instances adbconnect $INSTANCE_ID) | |
- JEST_JUNIT_CLASSNAME="{classname}" JEST_JUNIT_TITLE="{title}" npx detox test -c android.emu.release.ci --headless --device-name $DEVICE_NAME_ADB --jest-report-specs -- --coverage | |
after_script: | |
- gmsaas instances stop $INSTANCE_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment