From 22556a67461413dd7a0f54dbe3791aca70fc0b8b Mon Sep 17 00:00:00 2001 From: dtopuzov Date: Thu, 7 Sep 2017 09:38:09 +0300 Subject: [PATCH 1/6] Fix create emulator --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8fe66b1b1..a7f7231fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ install: - npm install - npm i appium@$APPIUM_VERSION before_script: - - echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI + - echo no | $ANDROID_HOME/tools/bin/avdmanager create avd -n test -k "system-images;android-$EMULATOR_API_LEVEL;default;armeabi-v7a" -b default/armeabi-v7a -f - emulator -memory 1024 -avd test -no-audio -no-window & - android-wait-for-emulator script: From 5dc3ef34e70007008d0201c447578f9fca76079c Mon Sep 17 00:00:00 2001 From: dtopuzov Date: Thu, 7 Sep 2017 10:32:54 +0300 Subject: [PATCH 2/6] Add logging --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a7f7231fe..891e3e13c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,9 @@ install: - npm install - npm i appium@$APPIUM_VERSION before_script: - - echo no | $ANDROID_HOME/tools/bin/avdmanager create avd -n test -k "system-images;android-$EMULATOR_API_LEVEL;default;armeabi-v7a" -b default/armeabi-v7a -f + - echo "Emulator Name: android-$EMULATOR_API_LEVEL" + - android list targets + - echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI - emulator -memory 1024 -avd test -no-audio -no-window & - android-wait-for-emulator script: From 4809a3810c19ba91ce0a5fd0badce370976b2b92 Mon Sep 17 00:00:00 2001 From: dtopuzov Date: Thu, 7 Sep 2017 10:42:23 +0300 Subject: [PATCH 3/6] Add logging --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 891e3e13c..f7801e07f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,7 @@ cache: - "$HOME/.gradle/caches/" - "$HOME/.gradle/wrapper/" install: +- echo "android-$EMULATOR_API_LEVEL" - nvm install $NODE_VERSION - npm install -g typings - wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz" @@ -38,7 +39,6 @@ install: - npm install - npm i appium@$APPIUM_VERSION before_script: - - echo "Emulator Name: android-$EMULATOR_API_LEVEL" - android list targets - echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI - emulator -memory 1024 -avd test -no-audio -no-window & From b1804cf69ab7576f8016cc025f26255f0c64aa07 Mon Sep 17 00:00:00 2001 From: dtopuzov Date: Thu, 7 Sep 2017 10:58:09 +0300 Subject: [PATCH 4/6] Blind fixes --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index f7801e07f..930c26764 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,10 @@ android: - tools - build-tools-$ANDROID_BUILD_TOOLS_VERSION - android-$ANDROID_VERSION + - android-$EMULATOR_API_LEVEL - extra-android-m2repository - sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL + - sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock cache: From 7a0e37cc009a6c5f3b7d9331f859e0173adcc192 Mon Sep 17 00:00:00 2001 From: dtopuzov Date: Thu, 7 Sep 2017 10:58:58 +0300 Subject: [PATCH 5/6] Blind fix --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 930c26764..cbf0148c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,7 @@ cache: - "$HOME/.gradle/wrapper/" install: - echo "android-$EMULATOR_API_LEVEL" +- android list targets - nvm install $NODE_VERSION - npm install -g typings - wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz" From ab89218942f1e9a7dc2deaa965856823f1a85f43 Mon Sep 17 00:00:00 2001 From: dtopuzov Date: Thu, 7 Sep 2017 13:25:01 +0300 Subject: [PATCH 6/6] Fix the build --- .travis.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index cbf0148c1..731a326be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,6 @@ android: - android-$EMULATOR_API_LEVEL - extra-android-m2repository - sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL - - sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock cache: @@ -27,8 +26,6 @@ cache: - "$HOME/.gradle/caches/" - "$HOME/.gradle/wrapper/" install: -- echo "android-$EMULATOR_API_LEVEL" -- android list targets - nvm install $NODE_VERSION - npm install -g typings - wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz" @@ -42,7 +39,6 @@ install: - npm install - npm i appium@$APPIUM_VERSION before_script: - - android list targets - echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI - emulator -memory 1024 -avd test -no-audio -no-window & - android-wait-for-emulator