mirror of
https://github.com/containers/podman.git
synced 2025-10-19 04:03:23 +08:00
Cirrus: Add check for make varlink_api_generate
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
28
.cirrus.yml
28
.cirrus.yml
@ -176,6 +176,34 @@ vendor_task:
|
|||||||
failed_master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh |& ${TIMESTAMP}'
|
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:
|
build_each_commit_task:
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
SUGGESTION="${SUGGESTION:-sync the vendor.conf and commit all changes.}"
|
||||||
|
|
||||||
STATUS=$(git status --porcelain)
|
STATUS=$(git status --porcelain)
|
||||||
if [[ -z $STATUS ]]
|
if [[ -z $STATUS ]]
|
||||||
then
|
then
|
||||||
echo "tree is clean"
|
echo "tree is clean"
|
||||||
else
|
else
|
||||||
echo "tree is dirty, please commit all changes and sync the vendor.conf"
|
echo "tree is dirty, please $SUGGESTION"
|
||||||
echo ""
|
echo ""
|
||||||
echo "$STATUS"
|
echo "$STATUS"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user