Skip to content

Instantly share code, notes, and snippets.

View thomascarpentier's full-sized avatar

Thomas CARPENTIER thomascarpentier

  • Genymobile
  • Bourgoin Jallieu / Lyon
View GitHub Profile
@thomascarpentier
thomascarpentier / CircleCi-run-android-expresso-tests
Created May 4, 2020 16:27
CircleCi-run-android-expresso-tests
jobs:
android9:
executor: genymotion-saas/default
steps:
- checkout
- genymotion-saas/setup
- genymotion-saas/start-instance:
recipe_uuid: "e20da1a3-313c-434a-9d43-7268b12fee08"
- run: ./gradlew connectedDebugAndroidTest
- genymotion-saas/stop-instance
@thomascarpentier
thomascarpentier / CircleCi-Start-Android9-instance
Last active May 4, 2020 16:26
CircleCi-Start-Android9-instance
jobs:
android9:
executor: genymotion-saas/default
steps:
- checkout
- genymotion-saas/setup
- genymotion-saas/start-instance:
recipe_uuid: "e20da1a3-313c-434a-9d43-7268b12fee08"
- genymotion-saas/stop-instance
@thomascarpentier
thomascarpentier / CircleCI-start-genymotion-instance
Created May 4, 2020 16:22
CircleCI-start-genymotion-instance
- genymotion-saas/start-instance:
recipe_uuid: "" # Mandatory: Retrieve the recipe uuid using 'gmsaas recipes list' command line or check https://support.genymotion.com/hc/en-us/articles/360007473658-Supported-Android-devices-templates-for-Genymotion-Cloud-SaaS for a comprehensive list of all currently available recipes UUIDs.
adb_serial_port: "" # Optional: Enter a specific adb serial port here otherwise a random port is generated.
@thomascarpentier
thomascarpentier / Circleci_several_android_builds
Last active May 4, 2020 16:28
Circleci_several_android_builds
version: 2.1
orbs:
genymotion-saas: genymotion/genymotion-saas@1.0.0
jobs:
android9:
executor: genymotion-saas/default
steps:
- checkout
@thomascarpentier
thomascarpentier / Circleci-genymotion-saas-job
Last active May 5, 2020 09:34
Circleci_genymotion-saas-job
version: 2.1
orbs:
genymotion-saas: genymotion/genymotion-saas@1.0.0
workflows:
basic_workflow:
jobs:
- genymotion-saas/run_tests:
name: "Run Android 9.0"
android8:
steps:
- checkout
- genymotion-saas/setup
- genymotion-saas/start-instance:
recipe_uuid: "c52fdfc2-6914-4266-aa6e-50258f50ef91"
- genymotion-saas/stop-instance
jobs:
build:
<<: *defaults
steps:
- checkout
- run:
name: Accept all SDK package licenses
command: |
yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi;
- restore_cache:
@thomascarpentier
thomascarpentier / Start Appium server
Created March 31, 2020 15:04
Script step to start Appium server on bitrise.io
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
#export JAVA_HOME
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
@thomascarpentier
thomascarpentier / run-tests.sh
Last active April 17, 2020 09:57
Script septe to run pytest tests with Appium on Bitrise.io and Genymotion Cloud SaaS
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
echo "# Install dependencies"
pip3 install -r appium/requirements.txt
@thomascarpentier
thomascarpentier / genymotion.tf
Created December 6, 2019 15:28
Start Genymotion SaaS instances with terraform
# Configure the Genymotion Provider
provider "genymotion" {
email = "GENYMOTION_CLOUD_SAAS_EMAIL_HERE"
password = "GENYMOTION_CLOUD_SAAS_PASSWORD_HERE"
}
# Create a Genymotion Cloud SaaS Android 9.0 instance
resource "genymotion_cloud" "Android90" {
recipe_uuid = "143eb44a-1d3a-4f27-bcac-3c40124e2836" # Google Pixel 3
name = "Android90"