Skip to content

Commit dd8b2f3

Browse files
authored
feat: add no_output_timeout to commands and jobs (#32)
* feat: add `no_output_timeout` to all commands * feat: add `no_output_timeout` to `build` and `test` jobs
1 parent cc81411 commit dd8b2f3

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

src/commands/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,15 @@ parameters:
4747
Whether to compress the build output to a ".tar.gz" archive.
4848
This is recommended if you want to download the built artifacts from the CircleCI web app.
4949
If left to "false" for decompressed WebGL builds, you can run the project directly from the CircleCI web app.
50+
no_output_timeout:
51+
type: string
52+
default: "10m"
53+
description: Elapsed time the command can run without output.
5054

5155
steps:
5256
- run:
5357
name: << parameters.step-name >>
58+
no_output_timeout: << parameters.no_output_timeout >>
5459
environment:
5560
PARAM_BUILD_NAME: << parameters.build-name >>
5661
PARAM_BUILD_TARGET: << parameters.build-target >>

src/commands/prepare-env.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ parameters:
4040
description: |
4141
Enter the path of your Unity project.
4242
This should be the directory that has an "Assets" folder inside it.
43+
no_output_timeout:
44+
type: string
45+
default: "10m"
46+
description: Elapsed time the command can run without output.
4347

4448
steps:
4549
- restore_cache:
@@ -48,6 +52,7 @@ steps:
4852
- unity-deps-{{ arch }}-<< parameters.cache-version >>-<<# parameters.include-branch-in-cache-key >>{{ .Branch }}<</ parameters.include-branch-in-cache-key >>
4953
- run:
5054
name: Prepare the environment
55+
no_output_timeout: << parameters.no_output_timeout >>
5156
environment:
5257
PARAM_UNITY_USERNAME_VAR_NAME: << parameters.unity-username-var-name >>
5358
PARAM_UNITY_PASSWORD_VAR_NAME: << parameters.unity-password-var-name >>

src/commands/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@ parameters:
3030
default: true
3131
description: >
3232
If true, this cache bucket will only apply to jobs within the same branch.
33+
no_output_timeout:
34+
type: string
35+
default: "10m"
36+
description: Elapsed time the command can run without output.
3337

3438
steps:
3539
- run:
3640
name: << parameters.step-name >>
41+
no_output_timeout: << parameters.no_output_timeout >>
3742
environment:
3843
PARAM_PROJECT_PATH: << parameters.project-path >>
3944
PARAM_TEST_PLATFORM: << parameters.test-platform >>

src/jobs/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ parameters:
6969
description: |
7070
Whether to return the license used to build the project.
7171
Unity only allows returning professional licenses.
72+
no_output_timeout:
73+
type: string
74+
default: "20m"
75+
description: Elapsed time the command can run without output.
7276

7377
executor: << parameters.executor >>
7478

@@ -80,13 +84,15 @@ steps:
8084
unity-serial-var-name: << parameters.unity-serial-var-name >>
8185
unity-license-var-name: << parameters.unity-license-var-name >>
8286
project-path: <<parameters.project-path>>
87+
no_output_timeout: << parameters.no_output_timeout>>
8388
- build:
8489
step-name: << parameters.step-name >>
8590
build-name: <<parameters.build-name>>
8691
build-target: <<parameters.build-target>>
8792
project-path: <<parameters.project-path>>
8893
store-artifacts: <<parameters.store-artifacts>>
8994
compress: <<parameters.compress>>
95+
no_output_timeout: << parameters.no_output_timeout>>
9096
- when:
9197
condition: <<parameters.return-license>>
9298
steps:

src/jobs/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ parameters:
5252
description: |
5353
Whether to return the license used to test the project.
5454
Unity only allows returning professional licenses.
55+
no_output_timeout:
56+
type: string
57+
default: "20m"
58+
description: Elapsed time the command can run without output.
5559

5660
executor: << parameters.executor >>
5761

@@ -63,10 +67,12 @@ steps:
6367
unity-serial-var-name: << parameters.unity-serial-var-name >>
6468
unity-license-var-name: << parameters.unity-license-var-name >>
6569
project-path: <<parameters.project-path>>
70+
no_output_timeout: << parameters.no_output_timeout>>
6671
- test:
6772
step-name: << parameters.step-name >>
6873
test-platform: << parameters.test-platform >>
6974
project-path: << parameters.project-path >>
75+
no_output_timeout: << parameters.no_output_timeout>>
7076
- when:
7177
condition: <<parameters.return-license>>
7278
steps:

0 commit comments

Comments
 (0)