Skip to content

Instantly share code, notes, and snippets.

@jarvisluong
Created August 12, 2020 09:19
Show Gist options
  • Save jarvisluong/9651fad2bd60714e35aa3f8a30279997 to your computer and use it in GitHub Desktop.
Save jarvisluong/9651fad2bd60714e35aa3f8a30279997 to your computer and use it in GitHub Desktop.
Gitlab ci job with gmsaas detox
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