From da177442ce2e78abb04601cee92e13466f819e2b Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Tue, 4 Sep 2018 10:34:49 +0200 Subject: [PATCH] Cleaned up --- docker/Genymotion | 2 +- genymotion/example/geny.yml | 1 - src/appium.sh | 20 ++++++++++---------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/docker/Genymotion b/docker/Genymotion index 6a23a30..46d976e 100644 --- a/docker/Genymotion +++ b/docker/Genymotion @@ -94,7 +94,7 @@ ENV DISPLAY=:0 \ #==================== # Install genymotion #==================== -RUN echo | ssh-keygen +RUN echo | ssh-keygen -q ARG GENYMOTION_VERSION=2.12.1 ENV GENYMOTION=true \ GENYMOTION_VERSION=$GENYMOTION_VERSION \ diff --git a/genymotion/example/geny.yml b/genymotion/example/geny.yml index 231ca0e..0604f45 100755 --- a/genymotion/example/geny.yml +++ b/genymotion/example/geny.yml @@ -28,7 +28,6 @@ services: - CONNECT_TO_GRID=true # Please stop this container by using docker stop instead of docker-compose stop - # The implementation still in progress aws: image: butomo1989/docker-android-genymotion depends_on: diff --git a/src/appium.sh b/src/appium.sh index e5cbdd8..13108f2 100644 --- a/src/appium.sh +++ b/src/appium.sh @@ -76,7 +76,7 @@ provider "aws" { } resource "aws_security_group" "geny_sg_$index" { - provider = "aws.provider_$index" + provider = "aws.provider_$index" ingress { from_port = 0 to_port = 65535 @@ -186,17 +186,17 @@ elif [ "$GENYMOTION" = true ]; then echo "Using Genymotion" echo "${types[@]}" case $TYPE in - "${types[0]}" ) - echo "Using Genymotion-Cloud" + "${types[0]}" ) + echo "Using Genymotion-Cloud" prepare_geny_cloud run_appium - ;; - "${types[1]}" ) - echo "Using Genymotion-AWS" - prepare_geny_aws - run_appium - ;; - esac + ;; + "${types[1]}" ) + echo "Using Genymotion-AWS" + prepare_geny_aws + run_appium + ;; + esac else echo "Using Emulator" python3 -m src.app