Skip to content

Commit 52b139f

Browse files
authored
Merge pull request #7 from MarathonLabs/ios_support
ios support
2 parents 116c240 + e76e7c9 commit 52b139f

File tree

6 files changed

+30
-4
lines changed

6 files changed

+30
-4
lines changed

.circleci/test-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
# apiKeyEnvVar: MARATHON_CLOUD_API_TOKEN
3636
# application: app.apk
3737
# testApplication: appTest.apk
38+
# platform: Android
3839
print-help-test:
3940
executor: marathon-cloud-orb/default
4041
steps:

src/commands/run_tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ parameters:
88
application:
99
type: string
1010
description: >
11-
Application binary path, e.g. apk file for Android
11+
Application binary path, e.g. apk file for Android or zip file of iOS Application
1212
testApplication:
1313
type: string
1414
description: >
15-
Test application binary path, e.g. apk file for Android
15+
Test application binary path, e.g. apk file for Android or zip file of iOS Test Runner app
16+
platform:
17+
type: string
18+
description: >
19+
Testing platform. Android or iOS only
1620
output:
1721
type: string
1822
default: "marathon"
@@ -24,5 +28,6 @@ steps:
2428
ORB_API_KEY_ENV_VAR: <<parameters.apiKeyEnvVar>>
2529
ORB_APPLICATION: <<parameters.application>>
2630
ORB_TEST_APPLICATION: <<parameters.testApplication>>
31+
ORB_PLATFORM: <<parameters.platform>>
2732
ORB_OUTPUT: <<parameters.output>>
2833
command: <<include(scripts/run-tests.sh)>>

src/examples/example.yml renamed to src/examples/example_android.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ usage:
1212
apiKeyEnvVar: MARATHON_CLOUD_API_TOKEN # don't forget to add a token
1313
application: app/build/outputs/apk/debug/app-debug.apk
1414
testApplication: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
15+
platform: Android
1516
workflows:
1617
marathon-cloud-orb-example:
1718
jobs:

src/examples/example_ios.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
description: >
2+
Run a job inside the marathon-cloud cli container, via this orb's executor.
3+
usage:
4+
version: 2.1
5+
orbs:
6+
marathon-cloud: marathonlabs/[email protected]
7+
jobs:
8+
run-tests-using-marathon-cloud:
9+
executor: marathon-cloud/default
10+
steps:
11+
- marathon-cloud/run_tests:
12+
apiKeyEnvVar: MARATHON_CLOUD_API_TOKEN # don't forget to add a token
13+
application: /home/user/workspace/sample.zip
14+
testApplication: /home/user/workspace/sampleUITests-Runner.zip
15+
platform: iOS
16+
workflows:
17+
marathon-cloud-orb-example:
18+
jobs:
19+
- run-tests-using-marathon-cloud

src/executors/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ docker:
44
- image: 'marathonlabs/marathon-cloud:<<parameters.tag>>'
55
parameters:
66
tag:
7-
default: 0.1.2
7+
default: 0.2.0
88
description: >
99
Pick a specific marathonlabs/marathon-cloud image variant:
1010
https://hub.docker.com/r/marathonlabs/marathon-cloud/tags

src/scripts/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
API_KEY=$(eval echo \$"$ORB_API_KEY_ENV_VAR")
44

5-
marathon-cloud -api-key "$API_KEY" -apk "$ORB_APPLICATION" -testapk "$ORB_TEST_APPLICATION" -o "$ORB_OUTPUT"
5+
marathon-cloud -api-key "$API_KEY" -app "$ORB_APPLICATION" -testapp "$ORB_TEST_APPLICATION" -o "$ORB_OUTPUT" -platform "$ORB_PLATFORM"

0 commit comments

Comments
 (0)