我正在CircleCI上集成calabash-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
我已经尝试了不同的方法来解决问题,但问题仍然存在。感谢所有的帮助。
将密钥库文件存储在专用保管箱文件夹中。将链接保存为将文件下载为环境变量 ($KEYSTORE_下载_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
我希望这对您有所帮助:)