Skip to content

Commit

Permalink
feat: Add a store_artifact_path to the Android and iOS test jobs wh…
Browse files Browse the repository at this point in the history
…ich allow storing artifacts after a job runs (react-native-community#54 by @MateusAndrade)
  • Loading branch information
MateusAndrade committed May 9, 2020
1 parent 2b018f7 commit 19edf8a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/jobs/android_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ parameters:
type: enum
enum: ["fatal", "error", "warn", "info", "verbose", "trace"]
default: warn
store_artifact_path:
description: Stores detox artifacts at CircleCI
type: string
default: ""
on_after_initialize:
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
type: boolean
Expand Down Expand Up @@ -77,3 +81,8 @@ steps:
- detox_test:
configuration: <<parameters.detox_configuration>>
loglevel: <<parameters.detox_loglevel>>
- when:
condition: <<parameters.store_artifact_path>>
steps:
- store_artifacts:
path: <<parameters.store_artifact_path>>
9 changes: 9 additions & 0 deletions src/jobs/ios_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ parameters:
type: enum
enum: ["fatal", "error", "warn", "info", "verbose", "trace"]
default: warn
store_artifact_path:
description: Stores detox artifacts at CircleCI
type: string
default: ""
on_after_initialize:
description: A custom command to run right after yarn install.
type: string
Expand Down Expand Up @@ -108,3 +112,8 @@ steps:
- detox_test:
configuration: <<parameters.detox_configuration>>
loglevel: <<parameters.detox_loglevel>>
- when:
condition: <<parameters.store_artifact_path>>
steps:
- store_artifacts:
path: <<parameters.store_artifact_path>>

0 comments on commit 19edf8a

Please sign in to comment.