Created
October 14, 2015 02:01
-
-
Save horie1024/fcc7f08da61e020bb462 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10.times do | |
resp_apk = devicefarm.get_upload({ | |
arn: apk_arn | |
}) | |
resp_test_package = devicefarm.get_upload({ | |
arn: calabash_package_arn | |
}) | |
if resp_apk.upload.status == "SUCCEEDED" && | |
resp_test_package.upload.status == "SUCCEEDED" | |
devicefarm.schedule_run({ | |
project_arn: "プロジェクトのARN", | |
app_arn: apk_arn, | |
device_pool_arn: device_pool_arn, | |
test: { | |
type: 'CALABASH', | |
test_package_arn: calabash_package_arn | |
} | |
}) | |
exit | |
end | |
sleep(1) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment