diff options
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 100 |
1 files changed, 56 insertions, 44 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 06ebb0c96..af28b823b 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -204,34 +204,34 @@ rpmbuild_task: # whether the git tree is clean. The reasoning for that is to make sure # that the vendor.conf, the code and the vendored packages in ./vendor are # in sync at all times. -# vendor_task: +vendor_task: -# only_if: >- -# $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:IMG.*' && -# $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:DOCS.*' + only_if: >- + $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:IMG.*' && + $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:DOCS.*' -# depends_on: -# - "gating" + depends_on: + - "gating" -# env: -# CIRRUS_WORKING_DIR: "/var/tmp/go/src/github.com/containers/libpod" -# GOPATH: "/var/tmp/go" -# GOSRC: "$CIRRUS_WORKING_DIR" + env: + CIRRUS_WORKING_DIR: "/var/tmp/go/src/github.com/containers/libpod" + GOPATH: "/var/tmp/go" + GOSRC: "$CIRRUS_WORKING_DIR" -# # Runs within Cirrus's "community cluster" -# container: -# image: docker.io/library/golang:1.13 -# cpu: 4 -# memory: 12 + # Runs within Cirrus's "community cluster" + container: + image: docker.io/library/golang:1.13 + cpu: 4 + memory: 12 -# timeout_in: 30m + timeout_in: 30m -# vendor_script: -# - 'cd ${CIRRUS_WORKING_DIR} && make vendor' -# - 'cd ${CIRRUS_WORKING_DIR} && ./hack/tree_status.sh' + vendor_script: + - 'cd ${CIRRUS_WORKING_DIR} && make vendor' + - 'cd ${CIRRUS_WORKING_DIR} && ./hack/tree_status.sh' -# on_failure: -# failed_branch_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_branch_failure.sh |& ${TIMESTAMP}' + on_failure: + failed_branch_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_branch_failure.sh |& ${TIMESTAMP}' # This task runs `make varlink_api_generate` followed by ./hack/tree_status.sh to check @@ -269,42 +269,43 @@ varlink_api_task: failed_branch_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_branch_failure.sh' -# build_each_commit_task: +build_each_commit_task: -# depends_on: -# - "gating" -# - "vendor" -# - "varlink_api" + depends_on: + - "gating" + - "vendor" + - "varlink_api" -# only_if: >- -# $CIRRUS_BRANCH != $DEST_BRANCH && -# $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:IMG.*' && -# $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:DOCS.*' + only_if: >- + $CIRRUS_BRANCH != $DEST_BRANCH && + $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:IMG.*' && + $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:DOCS.*' -# gce_instance: -# cpu: 8 -# memory: "8Gb" + gce_instance: + cpu: 8 + memory: "8Gb" -# env: -# MOD_CONTAINERS_CONF: 'false' + env: + MOD_CONTAINERS_CONF: 'false' -# timeout_in: 30m + timeout_in: 30m -# setup_environment_script: '$SCRIPT_BASE/setup_environment.sh |& ${TIMESTAMP}' -# build_each_commit_script: -# # set -x by default, no need to spew contents of lib.sh -# - 'source $SCRIPT_BASE/lib.sh &> /dev/null' -# - 'git fetch --depth 50 origin $DEST_BRANCH |& ${TIMESTAMP}' -# - 'make build-all-new-commits GIT_BASE_BRANCH=origin/$DEST_BRANCH |& ${TIMESTAMP}' + setup_environment_script: '$SCRIPT_BASE/setup_environment.sh |& ${TIMESTAMP}' + build_each_commit_script: + # set -x by default, no need to spew contents of lib.sh + - 'source $SCRIPT_BASE/lib.sh &> /dev/null' + - 'git fetch --depth 50 origin $DEST_BRANCH |& ${TIMESTAMP}' + - 'make build-all-new-commits GIT_BASE_BRANCH=origin/$DEST_BRANCH |& ${TIMESTAMP}' -# on_failure: -# failed_branch_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_branch_failure.sh' + on_failure: + failed_branch_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_branch_failure.sh' build_without_cgo_task: depends_on: - "gating" + - "vendor" - "varlink_api" only_if: >- @@ -365,7 +366,9 @@ testing_task: alias: "testing" depends_on: - "gating" + - "vendor" - "varlink_api" + - "build_each_commit" - "build_without_cgo" - "container_image_build" @@ -429,6 +432,8 @@ special_testing_rootless_task: depends_on: - "gating" - "varlink_api" + - "vendor" + - "build_each_commit" - "build_without_cgo" only_if: >- @@ -463,6 +468,8 @@ special_testing_in_podman_task: depends_on: - "gating" - "varlink_api" + - "vendor" + - "build_each_commit" - "build_without_cgo" only_if: >- @@ -501,6 +508,7 @@ special_testing_cross_task: depends_on: - "gating" - "varlink_api" + - "vendor" only_if: >- $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:IMG.*' && @@ -538,6 +546,7 @@ special_testing_bindings_task: depends_on: - "gating" - "varlink_api" + - "vendor" only_if: >- $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:IMG.*' && @@ -564,6 +573,7 @@ special_testing_endpoint_task: depends_on: - "gating" - "varlink_api" + - "vendor" only_if: >- $CIRRUS_CHANGE_MESSAGE !=~ '.*CI:IMG.*' && @@ -688,7 +698,9 @@ success_task: # ignores any dependent task conditions depends_on: - "gating" + - "vendor" - "varlink_api" + - "build_each_commit" - "build_without_cgo" - "container_image_build" - "meta" |