Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/211.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 圈出ci如何输入密钥库信息以使用自定义密钥库而不是默认密钥库_Android_Calabash_Circleci_Calabash Android - Fatal编程技术网

Android 圈出ci如何输入密钥库信息以使用自定义密钥库而不是默认密钥库

Android 圈出ci如何输入密钥库信息以使用自定义密钥库而不是默认密钥库,android,calabash,circleci,calabash-android,Android,Calabash,Circleci,Calabash Android,我正在CircleCI上集成葫芦android测试。到目前为止,我所在地区的一切都很顺利。当我开始在CircleCI上构建测试时,我得到了以下响应 Please enter keystore information to use a custom keystore instead of the default Please enter keystore location command calabash-android setup took more than 10 minutes since

我正在CircleCI上集成葫芦android测试。到目前为止,我所在地区的一切都很顺利。当我开始在CircleCI上构建测试时,我得到了以下响应

Please enter keystore information to use a custom keystore instead of the default

Please enter keystore location command calabash-android setup took more than 10 minutes since last output.
附加下面的circle.yml文件

machine:
environment:
  ANDROID_HOME: /usr/local/android-sdk-linux
  JAVA_HOME: /usr/lib/jvm/java-7-openjdk-amd64

ruby:
  version: 2.2.0

#general:
 #   artifacts:
 #      - /home/ubuntu/Latto-Android/app/build/outputs/apk/      

dependencies:
  cache_directories:
  - ~/.android
  - ~/android
override:
  - gem install calabash-android

test:
  pre:
    - emulator -avd circleci-android22 -no-audio -no-window:
      background: true
      parallel: true

override:
  - echo "Running JUnit tests!!!!!!" && ls && pwd
  - circle-android wait-for-boot
  - sleep 5
  # Unlock the emulator device
  - fb-adb shell input keyevent 82
  - sleep 5
  - fb-adb shell input touchscreen swipe 370 735 371 735
  - sleep 5
  - calabash-android setup
  - calabash-android resign "Test-debug-unaligned.apk"
  - calabash-android run "Test-debug-unaligned.apk" -v

我尝试了不同的方法来解决这个问题,但问题仍然存在。非常感谢您的帮助。

将您的密钥库文件存储在私人dropbox文件夹中。保存链接以将文件下载为环境变量($KEYSTORE\u download\u URL)。在名为download.sh的.circleci文件夹中创建一个shell脚本,如下所示:-

    if [[ ${KEYSTORE_DOWNLOAD_URL} ]] then

        curl -L -o KEYSTORE_FILE_NAME ${KEYSTORE_DOWNLOAD_URL} else
        echo "No keystore Environment variable found" 
    fi
在配置中添加一个步骤,如下所示:-

sh .circleci/download.sh

我希望这对你有帮助:)

哇,你是个迟到的弟弟。无论如何,谢谢你的帮助。