diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-05-06 19:58:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 19:58:30 +0200 |
commit | b12d15637cf36ddf8d15216b72ebb3b774765162 (patch) | |
tree | 363e38aa68686facde05254c722a9ce77c215b12 /.cirrus.yml | |
parent | ff260f07e2be55c7fbda24b8727686fc55c650a6 (diff) | |
parent | 5e6796c397715af198b6b1800763b86c1899497f (diff) | |
download | podman-b12d15637cf36ddf8d15216b72ebb3b774765162.tar.gz podman-b12d15637cf36ddf8d15216b72ebb3b774765162.tar.bz2 podman-b12d15637cf36ddf8d15216b72ebb3b774765162.zip |
Merge pull request #3048 from cevich/varlink_api_check
Cirrus: Add check for make varlink_api_generate
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 0745b1e7b..514889969 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -176,10 +176,40 @@ vendor_task: failed_master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh |& ${TIMESTAMP}' +# This task runs `make varlink_api_generate` followed by ./hack/tree_status.sh to check +# whether the git tree is clean. +varlink_api_task: + + depends_on: + - "gating" + + env: + CIRRUS_WORKING_DIR: "/usr/src/libpod" + # Used by tree_status.sh + SUGGESTION: 'remove API.md, then "make varlink_api_generate" and commit changes.' + + # Runs within Cirrus's "community cluster" + container: + image: "quay.io/libpod/gate:latest" + cpu: 4 + memory: 12 + + timeout_in: 10m + + vendor_script: + - '/usr/local/bin/entrypoint.sh varlink_api_generate' + - 'cd /go/src/github.com/containers/libpod && ./hack/tree_status.sh' + + on_failure: + failed_master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh' + + build_each_commit_task: depends_on: - "gating" + - "vendor" + - "varlink_api" # $CIRRUS_BASE_BRANCH is only set when testing a PR only_if: $CIRRUS_BRANCH != 'master' @@ -232,6 +262,8 @@ testing_task: depends_on: - "gating" + - "varlink_api" + - "vendor" - "build_each_commit" gce_instance: @@ -275,6 +307,8 @@ special_testing_task: depends_on: - "gating" + - "varlink_api" + - "vendor" - "build_each_commit" gce_instance: @@ -388,6 +422,8 @@ success_task: depends_on: # ignores any dependent task conditions - "gating" + - "varlink_api" + - "vendor" - "build_each_commit_task" - "testing" - "rootless_testing_task" |