Calabash-android test

android

#1

I am trying run the Calabash android test here. Since I am new to Circleci do not have the faintest idea how to create the circle.yml file. I have gone through the below-given sample. Any one please suggest what are all the changes I will have to make to the existing file.

machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux

dependencies:
override:
- gem install calabash-android

test:
pre:
- emulator -avd circleci-android22 -no-audio -no-window:
background: true
parallel: true
override:
- (echo “Running JUnit tests!”)
- (./gradlew assembleDebug)
- circle-android wait-for-boot
- sleep 5
# - (./gradlew connectedAndroidTest)
# Unlock the emulator device
- fb-adb shell input keyevent 82
- sleep 5
- fb-adb shell input touchscreen swipe 370 735 371 735
- sleep 5
- cp app/build/outputs/apk/app-debug.apk calabash.apk
- calabash-android resign “pwd/calabash.apk” -v
- calabash-android run “pwd/calabash.apk” -v
- cp calabash.apk $CIRCLE_ARTIFACTS
- cp .png $CIRCLE_ARTIFACTS
- cp /tmp/junit/
$CIRCLE_TEST_REPORTS
- adb logcat -d > $CIRCLE_ARTIFACTS/logcat.txt


#2