summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2024-01-28 05:23:17 -0500
committerGitHub <noreply@github.com>2024-01-28 05:23:17 -0500
commite9125500af158bc85b93463620b80f6dfa3fcf9f (patch)
tree718c086123a3dbbd1e2f87320fd708529437bb87
parent5cf17f6015e8fce5a8a0799c70e7a032b7f024ad (diff)
ci: add an explicit timeout for jobs (#1398)
-rw-r--r--.cirrus.yml16
1 files changed, 9 insertions, 7 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index d6cf1290..ae223389 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -14,14 +14,14 @@ setup_template: &SETUP_TEMPLATE
cache_template: &CACHE_TEMPLATE
registry_cache:
folder: $HOME/.cargo/registry
- reupload_on_changes: true
+ reupload_on_changes: "true"
fingerprint_script:
- md5 Cargo.lock
- echo $CIRRUS_OS
- echo $CIRRUS_TASK_NAME
target_cache:
folder: target
- reupload_on_changes: true
+ reupload_on_changes: "true"
fingerprint_script:
- . $HOME/.cargo/env && rustc --version
- md5 Cargo.lock
@@ -35,13 +35,14 @@ cleanup_template: &CLEANUP_TEMPLATE
- rm -f ./target/.rustc_info.json
env:
- CARGO_INCREMENTAL: 0
- CARGO_PROFILE_DEV_DEBUG: 0
- CARGO_HUSKY_DONT_INSTALL_HOOKS: true
+ CARGO_INCREMENTAL: "0"
+ CARGO_PROFILE_DEV_DEBUG: "0"
+ CARGO_HUSKY_DONT_INSTALL_HOOKS: "true"
test_task:
auto_cancellation: $CIRRUS_BRANCH != "main"
only_if: $CIRRUS_BUILD_SOURCE != "api" && ($CIRRUS_BRANCH == "main" || $CIRRUS_PR != "")
+ timeout_in: "20m"
skip: "!changesInclude('.cargo/**', '.cirrus.yml', 'sample_configs/**', 'src/**', 'tests/**', 'build.rs', 'Cargo.lock', 'Cargo.toml', 'clippy.toml', 'rustfmt.toml')"
matrix:
- name: "FreeBSD 13 Test"
@@ -70,10 +71,11 @@ test_task:
<<: *CLEANUP_TEMPLATE
build_task:
- auto_cancellation: false
+ auto_cancellation: "false"
only_if: $CIRRUS_BUILD_SOURCE == "api"
+ timeout_in: "30m"
env:
- BTM_GENERATE: true
+ BTM_GENERATE: "true"
COMPLETION_DIR: "target/tmp/bottom/completion/"
MANPAGE_DIR: "target/tmp/bottom/manpage/"
# -PLACEHOLDER FOR CI-