From b648ca08102ae9b1c140a96b5bfc02fcc303d585 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 1 May 2019 10:37:50 -0400 Subject: Cirrus: Add check for make varlink_api_generate Signed-off-by: Chris Evich --- .cirrus.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to '.cirrus.yml') diff --git a/.cirrus.yml b/.cirrus.yml index 0745b1e7b..25ca058fc 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -176,6 +176,34 @@ 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: -- cgit v1.2.3-54-g00ecf From 6c8b548160fc8ee98b9f03f141d6f9314f3489d1 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 1 May 2019 10:40:35 -0400 Subject: Cirrus: Add missing task dependencies Signed-off-by: Chris Evich --- .cirrus.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.cirrus.yml') diff --git a/.cirrus.yml b/.cirrus.yml index 25ca058fc..514889969 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -208,6 +208,8 @@ 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' @@ -260,6 +262,8 @@ testing_task: depends_on: - "gating" + - "varlink_api" + - "vendor" - "build_each_commit" gce_instance: @@ -303,6 +307,8 @@ special_testing_task: depends_on: - "gating" + - "varlink_api" + - "vendor" - "build_each_commit" gce_instance: @@ -416,6 +422,8 @@ success_task: depends_on: # ignores any dependent task conditions - "gating" + - "varlink_api" + - "vendor" - "build_each_commit_task" - "testing" - "rootless_testing_task" -- cgit v1.2.3-54-g00ecf