Skip to content

Commit 19edf8a

Browse files
feat: Add a store_artifact_path to the Android and iOS test jobs which allow storing artifacts after a job runs (#54 by @MateusAndrade)
1 parent 2b018f7 commit 19edf8a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/jobs/android_test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ parameters:
3939
type: enum
4040
enum: ["fatal", "error", "warn", "info", "verbose", "trace"]
4141
default: warn
42+
store_artifact_path:
43+
description: Stores detox artifacts at CircleCI
44+
type: string
45+
default: ""
4246
on_after_initialize:
4347
description: Set this to true if you want to run a custom shell command right after yarn install. Provide the command in on_after_initialize_command
4448
type: boolean
@@ -77,3 +81,8 @@ steps:
7781
- detox_test:
7882
configuration: <<parameters.detox_configuration>>
7983
loglevel: <<parameters.detox_loglevel>>
84+
- when:
85+
condition: <<parameters.store_artifact_path>>
86+
steps:
87+
- store_artifacts:
88+
path: <<parameters.store_artifact_path>>

src/jobs/ios_build_and_test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ parameters:
5858
type: enum
5959
enum: ["fatal", "error", "warn", "info", "verbose", "trace"]
6060
default: warn
61+
store_artifact_path:
62+
description: Stores detox artifacts at CircleCI
63+
type: string
64+
default: ""
6165
on_after_initialize:
6266
description: A custom command to run right after yarn install.
6367
type: string
@@ -108,3 +112,8 @@ steps:
108112
- detox_test:
109113
configuration: <<parameters.detox_configuration>>
110114
loglevel: <<parameters.detox_loglevel>>
115+
- when:
116+
condition: <<parameters.store_artifact_path>>
117+
steps:
118+
- store_artifacts:
119+
path: <<parameters.store_artifact_path>>

0 commit comments

Comments
 (0)